So you can quickly login to multiple sites (obviously one session at a time per tab) I’ve made the following improvements:
termcourse auth and config improvements
- Username/password is now the default login path.
- You don’t need to include
https://anymore - this is optional - Missing login fields are prompted interactively (for example: username known, password missing).
- CLI help includes core env vars and debug log file locations.
Credentials and ENV behavior
- Supports host-mapped credentials file with lookup order:
- TERMCOURSE_CREDENTIALS_FILE (if set)
- ./credentials.yml
- ~/.config/termcourse/credentials.yml
- Auth precedence:
- CLI flags
- Host credentials from YAML
- Generic DISCOURSE_* env vars
- Interactive prompt
- For auth: login, missing username/password values are prompted.
- For API auth, both API username and key must resolve to non-empty values.
Debugging
- HTTP/auth debug: TERMCOURSE_HTTP_DEBUG=1 → /tmp/termcourse_http_debug.txt
- UI render debug: TERMCOURSE_DEBUG=1 → /tmp/termcourse_debug.txt
Repo hygiene
- Added credentials.example.yml and .env.example with aligned examples.
- Added .gitignore entries for local secret files:
- .env
- credentials.yml