-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
enhancementa request to improve CLIa request to improve CLIneeds-triageneeds to be reviewedneeds to be reviewed
Description
Describe the feature or problem you’d like to solve
gh config documentation is generated differenctly, hence not covered in #8342.
https://cli.github.com/manual/gh_config
Proposed solution
Backquote settings and default values.
Additional context
Lines 16 to 26 in 541ce0e
| func NewCmdConfig(f *cmdutil.Factory) *cobra.Command { | |
| longDoc := strings.Builder{} | |
| longDoc.WriteString("Display or change configuration settings for gh.\n\n") | |
| longDoc.WriteString("Current respected settings:\n") | |
| for _, co := range config.ConfigOptions() { | |
| longDoc.WriteString(fmt.Sprintf("- %s: %s", co.Key, co.Description)) | |
| if co.DefaultValue != "" { | |
| longDoc.WriteString(fmt.Sprintf(" (default: %q)", co.DefaultValue)) | |
| } | |
| longDoc.WriteRune('\n') | |
| } |
Metadata
Metadata
Assignees
Labels
enhancementa request to improve CLIa request to improve CLIneeds-triageneeds to be reviewedneeds to be reviewed
