cli/internal/config
Mislav Marohnić aec0f10041 Fix error message when using GH_ENTERPRISE_TOKEN but host is ambiguous
Before:

    $ GH_ENTERPRISE_TOKEN="..." gh pr create
    could not find hosts config: not found

Now:

    $ GH_ENTERPRISE_TOKEN="..." gh pr create
    set the GH_HOST environment variable to specify which GitHub host to use

Also amends `gh help environment` documentation to suggest the use of
GH_HOST when scripting operations with GitHub Enterprise repositories.
2021-07-20 14:11:07 +02:00
..
alias_config.go better get func 2020-06-05 13:09:04 -05:00
config_file.go Skip auto migrate of config when GH_CONFIG_DIR 2021-07-19 16:33:51 -04:00
config_file_test.go Add support for XDG_DATA_HOME 2021-06-02 09:46:14 -04:00
config_map.go Fix issue in FindEntry that causes extensions and alias crash 2021-06-29 15:01:00 -07:00
config_map_test.go Fix issue in FindEntry that causes extensions and alias crash 2021-06-29 15:01:00 -07:00
config_type.go Add config handling for http_unix_socket 2021-06-25 11:47:22 -07:00
config_type_test.go Add config handling for http_unix_socket 2021-06-25 11:47:22 -07:00
from_env.go Fix error message when using GH_ENTERPRISE_TOKEN but host is ambiguous 2021-07-20 14:11:07 +02:00
from_env_test.go Fix error message when using GH_ENTERPRISE_TOKEN but host is ambiguous 2021-07-20 14:11:07 +02:00
from_file.go Fix error message when using GH_ENTERPRISE_TOKEN but host is ambiguous 2021-07-20 14:11:07 +02:00
from_file_test.go Fix error message when using GH_ENTERPRISE_TOKEN but host is ambiguous 2021-07-20 14:11:07 +02:00
stub.go Default to GHES host if only GHES is authenticated (#3286) 2021-03-30 16:51:00 +02:00
testing.go Add support for XDG_STATE_HOME 2021-05-25 16:30:51 -04:00