Skip to content

List allowed values of gh config settings #8480

@muzimuzhi

Description

@muzimuzhi

Describe the feature or problem you’d like to solve

In addition to default values, having allowed values documented would be more helpful and comprehensive.
https://cli.github.com/manual/gh_config
image

Related to

Proposed solution

Document allowed values.

Additional context

func ConfigOptions() []ConfigOption {
return []ConfigOption{
{
Key: gitProtocolKey,
Description: "the protocol to use for git clone and push operations",
DefaultValue: "https",
AllowedValues: []string{"https", "ssh"},
},
{
Key: editorKey,
Description: "the text editor program to use for authoring text",
DefaultValue: "",
},
{
Key: promptKey,
Description: "toggle interactive prompting in the terminal",
DefaultValue: "enabled",
AllowedValues: []string{"enabled", "disabled"},
},
{
Key: pagerKey,
Description: "the terminal pager program to send standard output to",
DefaultValue: "",
},
{
Key: httpUnixSocketKey,
Description: "the path to a Unix socket through which to make an HTTP connection",
DefaultValue: "",
},
{
Key: browserKey,
Description: "the web browser to use for opening URLs",
DefaultValue: "",
},
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-configrelating to the gh config commandhelp wantedContributions welcome

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions