Display environment context in error messages like Try logging in using 'coder login <url>'
#11505
Labels
good first issue
Easily solved issues suitable for starters and community contributors
Context
The following message is displayed when a user has an invalid/expired session:
These appear to all be hardcoded
(grep snippet)
Ask
The Coder CLI should respect the values of
$CODER_URL
and$CODER_SSH_CONFIG_BINARY_PATH
when displaying these messages.Example of desired behaviour
Context
When Coder is deployed in an organisational setting, it may be wrapped in a way that pre-sets these values.
Using these values in logged-out error messages would mean users can just copy-paste the command into their terminal, without needing to confirm what the URL is, or if the right command/right version of the command is being run.
The text was updated successfully, but these errors were encountered: