From 74f13a9b4f8e735a14ca227a21c31231db4fc41c Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:55:35 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Andy Feller --- pkg/cmd/cache/delete/delete.go | 6 +++--- pkg/cmd/repo/delete/delete.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/cmd/cache/delete/delete.go b/pkg/cmd/cache/delete/delete.go index 1835d87b1..65a9d696a 100644 --- a/pkg/cmd/cache/delete/delete.go +++ b/pkg/cmd/cache/delete/delete.go @@ -35,11 +35,11 @@ func NewCmdDelete(f *cmdutil.Factory, runF func(*DeleteOptions) error) *cobra.Co cmd := &cobra.Command{ Use: "delete [| | --all]", Short: "Delete GitHub Actions caches", - Long: heredoc.Doc(` + Long: heredoc.Docf(` Delete GitHub Actions caches. - Deletion requires authorization with the "repo" scope. - `), + Deletion requires authorization with the %[1]srepo%[1]s scope. + `, "`"), Example: heredoc.Doc(` # Delete a cache by id $ gh cache delete 1234 diff --git a/pkg/cmd/repo/delete/delete.go b/pkg/cmd/repo/delete/delete.go index e6fbf6363..7c6476f1d 100644 --- a/pkg/cmd/repo/delete/delete.go +++ b/pkg/cmd/repo/delete/delete.go @@ -39,14 +39,14 @@ func NewCmdDelete(f *cmdutil.Factory, runF func(*DeleteOptions) error) *cobra.Co cmd := &cobra.Command{ Use: "delete []", Short: "Delete a repository", - Long: heredoc.Doc(` + Long: heredoc.Docf(` Delete a GitHub repository. With no argument, deletes the current repository. Otherwise, deletes the specified repository. - Deletion requires authorization with the "delete_repo" scope. - To authorize, run "gh auth refresh -s delete_repo" - `), + Deletion requires authorization with the %[1]sdelete_repo%[1]s scope. + To authorize, run %[1]sgh auth refresh -s delete_repo%[1]s + `, "`"), Args: cobra.MaximumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { if len(args) > 0 {