Have core commands have consistent Short description

This commit is contained in:
Mislav Marohnić 2022-02-18 18:25:41 +01:00
parent 0f956c8502
commit 9cbfe73140
3 changed files with 6 additions and 3 deletions

View file

@ -14,8 +14,11 @@ import (
func NewCmdAuth(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "auth <command>",
Short: "Login, logout, and refresh your authentication",
Short: "Authenticate gh with GitHub",
Long: `Manage gh's authentication state.`,
Annotations: map[string]string{
"IsCore": "true",
},
}
cmdutil.DisableAuthCheck(cmd)

View file

@ -15,7 +15,7 @@ import (
func NewCmdRelease(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "release <command>",
Short: "Manage GitHub releases",
Short: "Manage releases",
Annotations: map[string]string{
"IsCore": "true",
},

View file

@ -22,7 +22,7 @@ import (
func NewCmdRepo(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "repo <command>",
Short: "Create, clone, fork, and view repositories",
Short: "Manage repositories",
Long: `Work with GitHub repositories.`,
Example: heredoc.Doc(`
$ gh repo create