@@ -41,32 +41,10 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
4141 ` ),
4242 Annotations : map [string ]string {
4343 "help:feedback" : heredoc .Doc (`
44- Open an issue using “ gh issue create -R cli/cli”
44+ Open an issue using ' gh issue create -R cli/cli'
4545 ` ),
4646 "help:environment" : heredoc .Doc (`
47- GITHUB_TOKEN: an authentication token for github.com API requests. Setting this avoids
48- being prompted to authenticate and takes precedence over previously stored credentials.
49-
50- GITHUB_ENTERPRISE_TOKEN: an authentication token for API requests to GitHub Enterprise.
51-
52- GH_REPO: specify the GitHub repository in the "[HOST/]OWNER/REPO" format for commands
53- that otherwise operate on a local repository.
54-
55- GH_HOST: specify the GitHub hostname for commands that would otherwise assume
56- the "github.com" host when not in a context of an existing repository.
57-
58- GH_EDITOR, GIT_EDITOR, VISUAL, EDITOR (in order of precedence): the editor tool to use
59- for authoring text.
60-
61- BROWSER: the web browser to use for opening links.
62-
63- DEBUG: set to any value to enable verbose output to standard error. Include values "api"
64- or "oauth" to print detailed information about HTTP requests or authentication flow.
65-
66- GLAMOUR_STYLE: the style to use for rendering Markdown. See
67- https://github.com/charmbracelet/glamour#styles
68-
69- NO_COLOR: avoid printing ANSI escape sequences for color output.
47+ See 'gh help environment' for the list of supported environment variables.
7048 ` ),
7149 },
7250 }
@@ -104,15 +82,17 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
10482
10583 cmdutil .DisableAuthCheck (cmd )
10684
107- // CHILD COMMANDS
108-
85+ // Child commands
10986 cmd .AddCommand (aliasCmd .NewCmdAlias (f ))
11087 cmd .AddCommand (authCmd .NewCmdAuth (f ))
11188 cmd .AddCommand (configCmd .NewCmdConfig (f ))
11289 cmd .AddCommand (creditsCmd .NewCmdCredits (f , nil ))
11390 cmd .AddCommand (gistCmd .NewCmdGist (f ))
11491 cmd .AddCommand (NewCmdCompletion (f .IOStreams ))
11592
93+ // Help topics
94+ cmd .AddCommand (NewHelpTopic ("environment" ))
95+
11696 // the `api` command should not inherit any extra HTTP headers
11797 bareHTTPCmdFactory := * f
11898 bareHTTPCmdFactory .HttpClient = func () (* http.Client , error ) {
0 commit comments