cli/pkg/cmd/root
Marwan Sulaiman a3940020f9
Inherit API endpoint configuration from the Codespaces environment (#4723)
gh codespace commands now respect the following environment variables:

- GITHUB_SERVER_URL: typically "https://github.com"
- GITHUB_API_URL: typically "https://api.github.com"
- INTERNAL_VSCS_TARGET_URL: typically "https://online.visualstudio.com"
- GITHUB_TOKEN when CODESPACES is set, even if the host connecting to isn't "github.com".

This set of changes ensures that `gh codespace` commands automatically connect to the right API endpoints when gh is used within a codespace.

Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-11-22 12:40:01 +01:00
..
help.go Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00
help_reference.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
help_test.go Offer different editor modes during release create 2020-08-25 20:20:44 +02:00
help_topic.go Make sure URLs in man pages render as hyperlinks on the web 2021-11-03 15:39:10 +01:00
help_topic_test.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
root.go Inherit API endpoint configuration from the Codespaces environment (#4723) 2021-11-22 12:40:01 +01:00