From f07f49810afdf6f65a14615296d320e568ef8a0f Mon Sep 17 00:00:00 2001 From: bagtoad <47394200+BagToad@users.noreply.github.com> Date: Wed, 9 Oct 2024 21:41:54 -0600 Subject: [PATCH] Update help and fix heredoc indentation --- pkg/cmd/repo/create/create.go | 2 +- pkg/cmd/repo/gitignore/list/list.go | 2 +- pkg/cmd/repo/gitignore/view/view.go | 15 ++++++++++++--- pkg/cmd/repo/license/list/list.go | 6 +++--- pkg/cmd/repo/license/view/view.go | 18 +++++++++++++++--- 5 files changed, 32 insertions(+), 11 deletions(-) diff --git a/pkg/cmd/repo/create/create.go b/pkg/cmd/repo/create/create.go index 8ac7453e6..2fc127aba 100644 --- a/pkg/cmd/repo/create/create.go +++ b/pkg/cmd/repo/create/create.go @@ -98,7 +98,7 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co For language or platform .gitignore templates to use with %[1]s--gitignore%[1]s, . - For license keywords to use with %[1]s--license%[1]s, . + For license keywords to use with %[1]s--license%[1]s, run %[1]sgh repo license list%[1]s or visit . `, "`"), Example: heredoc.Doc(` # create a repository interactively diff --git a/pkg/cmd/repo/gitignore/list/list.go b/pkg/cmd/repo/gitignore/list/list.go index 1e5fe034b..89dbefaf3 100644 --- a/pkg/cmd/repo/gitignore/list/list.go +++ b/pkg/cmd/repo/gitignore/list/list.go @@ -27,7 +27,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman cmd := &cobra.Command{ Use: "list", - Short: "List gitignore templates used in creating repositories", + Short: "List available repository gitignore templates", Aliases: []string{"ls"}, Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) error { diff --git a/pkg/cmd/repo/gitignore/view/view.go b/pkg/cmd/repo/gitignore/view/view.go index 216e786f2..82009820c 100644 --- a/pkg/cmd/repo/gitignore/view/view.go +++ b/pkg/cmd/repo/gitignore/view/view.go @@ -33,10 +33,19 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman Use: "view