X Tutup
Skip to content

Commit a50b0db

Browse files
author
Amanda Pinsker
authored
Merge pull request cli#1700 from cli/fix-config
Tweak config help docs
2 parents b34fe81 + db77f2d commit a50b0db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cmd/config/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ func NewCmdConfig(f *cmdutil.Factory) *cobra.Command {
1818
Current respected settings:
1919
- git_protocol: "https" or "ssh". Default is "https".
2020
- editor: if unset, defaults to environment variables.
21+
- prompt: "enabled" or "disabled". Toggles interactive prompting.
2122
`),
2223
}
2324

@@ -72,6 +73,8 @@ func NewCmdConfigSet(f *cmdutil.Factory) *cobra.Command {
7273
Example: heredoc.Doc(`
7374
$ gh config set editor vim
7475
$ gh config set editor "code --wait"
76+
$ gh config set git_protocol ssh
77+
$ gh config set prompt disabled
7578
`),
7679
Args: cobra.ExactArgs(2),
7780
RunE: func(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)
X Tutup