cli/pkg/cmd/factory
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
..
default.go Merge pull request #3779 from jgold-stripe/unix 2021-06-29 09:46:33 -07:00
default_test.go Ensure that tests for command factory never read from user's config 2021-06-17 17:59:34 +02:00
http.go add nebula preview 2021-06-30 17:38:07 -05:00
http_test.go add nebula preview 2021-06-30 17:38:07 -05:00
remote_resolver.go Fix error message when using GH_ENTERPRISE_TOKEN but host is ambiguous 2021-07-20 14:11:07 +02:00
remote_resolver_test.go Default to GHES host if only GHES is authenticated (#3286) 2021-03-30 16:51:00 +02:00