cli/internal/config
Mislav Marohnić c9407b2629 More descriptive error when aborting auth due to environment variables
Old message:

    read-only token in GH_TOKEN cannot be modified

This message was vague and some users did not understand that this
refers to the value that is read from environment variables.

New message:

    $ GH_TOKEN=123 ghd auth login -h github.com
    The value of the GH_TOKEN environment variable is being used for authentication.
    To have GitHub CLI store credentials instead, first clear the value from the environment.
2021-01-20 18:27:35 +01:00
..
alias_config.go better get func 2020-06-05 13:09:04 -05:00
config_file.go Isolate all alias commands 2020-08-11 13:57:48 +02:00
config_file_test.go Use testify assertions for error matching 2021-01-19 13:59:37 +01:00
config_type.go If git credential helper is non-defined, set gh as credential helper 2020-11-23 20:20:05 +01:00
config_type_test.go Use testify assertions for error matching 2021-01-19 13:59:37 +01:00
from_env.go More descriptive error when aborting auth due to environment variables 2021-01-20 18:27:35 +01:00
from_env_test.go Use testify assertions for error matching 2021-01-19 13:59:37 +01:00
stub.go Refactor config command 2020-11-03 09:49:05 +03:00
testing.go Support hosts.yml existing while config.yml does not 2020-07-01 14:34:44 +02:00