Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

List allowed values of gh config settings #8480

Copy link
Copy link

Description

@muzimuzhi
Issue body actions

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: "",
},
}
}

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.