Skip to content

docs: add aliases section to commands with short forms #130

@q-soriarty

Description

@q-soriarty

Problem

Some commands have aliases (e.g. list has ls). The gh CLI manual shows an "Aliases" section for these commands. Our manual doesn't.

gh CLI:

### Aliases

gh issue ls

Fix

The gen-docs.go post-processor should detect commands with aliases and add an "Aliases" section showing the short forms.

Affected commands

Commands with Aliases: []string{"ls"} or similar in their Cobra definition.

Reference

https://cli.github.com/manual/gh_issue_list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions