cli/pkg/cmd/auth/refresh
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
..
refresh.go More descriptive error when aborting auth due to environment variables 2021-01-20 18:27:35 +01:00
refresh_test.go Use testify assertions for error matching 2021-01-19 13:59:37 +01:00