From 9cbfe73140a7afe4814ade9a45b2d1dd4a58d6ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Fri, 18 Feb 2022 18:25:41 +0100 Subject: [PATCH] Have core commands have consistent Short description --- pkg/cmd/auth/auth.go | 5 ++++- pkg/cmd/release/release.go | 2 +- pkg/cmd/repo/repo.go | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/auth/auth.go b/pkg/cmd/auth/auth.go index e5ae67fa2..66757daf9 100644 --- a/pkg/cmd/auth/auth.go +++ b/pkg/cmd/auth/auth.go @@ -14,8 +14,11 @@ import ( func NewCmdAuth(f *cmdutil.Factory) *cobra.Command { cmd := &cobra.Command{ Use: "auth ", - 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) diff --git a/pkg/cmd/release/release.go b/pkg/cmd/release/release.go index 2d68418f0..c5a132cd2 100644 --- a/pkg/cmd/release/release.go +++ b/pkg/cmd/release/release.go @@ -15,7 +15,7 @@ import ( func NewCmdRelease(f *cmdutil.Factory) *cobra.Command { cmd := &cobra.Command{ Use: "release ", - Short: "Manage GitHub releases", + Short: "Manage releases", Annotations: map[string]string{ "IsCore": "true", }, diff --git a/pkg/cmd/repo/repo.go b/pkg/cmd/repo/repo.go index 08207c76e..e8696d7d9 100644 --- a/pkg/cmd/repo/repo.go +++ b/pkg/cmd/repo/repo.go @@ -22,7 +22,7 @@ import ( func NewCmdRepo(f *cmdutil.Factory) *cobra.Command { cmd := &cobra.Command{ Use: "repo ", - Short: "Create, clone, fork, and view repositories", + Short: "Manage repositories", Long: `Work with GitHub repositories.`, Example: heredoc.Doc(` $ gh repo create