Apply suggestions from code review
Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
parent
677ed2cdcf
commit
74f13a9b4f
2 changed files with 7 additions and 7 deletions
6
pkg/cmd/cache/delete/delete.go
vendored
6
pkg/cmd/cache/delete/delete.go
vendored
|
|
@ -35,11 +35,11 @@ func NewCmdDelete(f *cmdutil.Factory, runF func(*DeleteOptions) error) *cobra.Co
|
|||
cmd := &cobra.Command{
|
||||
Use: "delete [<cache-id>| <cache-key> | --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
|
||||
|
|
|
|||
|
|
@ -39,14 +39,14 @@ func NewCmdDelete(f *cmdutil.Factory, runF func(*DeleteOptions) error) *cobra.Co
|
|||
cmd := &cobra.Command{
|
||||
Use: "delete [<repository>]",
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue