You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documents mention search but give no information #4887
Out project layout documentation has some pointers about where the code for an individual command can be found, but we don't also document the fact that command documentation is embedded in its Go code. For example, gh issue list documentation:
Short: "List and filter issues in this repository",
Example: heredoc.Doc(`
$ gh issue list -l "bug" -l "help wanted"
$ gh issue list -A monalisa
$ gh issue list -a "@me"
$ gh issue list --web
$ gh issue list --milestone "The big 1.0"
$ gh issue list --search "error no:assignee sort:created-asc"
`),
Observe the Use, Short, Long (this command doesn't seem to have it), and Example fields. Every gh command (implemented as a Cobra command) has these strings which are later taken into account when generating documentation. To add/edit documentation, you can submit PRs to change these strings.
Activity
mislav commentedon Dec 13, 2021
@GadgetSteve Thank you for raising this issue.
Out project layout documentation has some pointers about where the code for an individual command can be found, but we don't also document the fact that command documentation is embedded in its Go code. For example,
gh issue listdocumentation:cli/pkg/cmd/issue/list/list.go
Lines 55 to 64 in 2d0b946
Observe the
Use,Short,Long(this command doesn't seem to have it), andExamplefields. Every gh command (implemented as a Cobra command) has these strings which are later taken into account when generating documentation. To add/edit documentation, you can submit PRs to change these strings.