Skip to content

Commit

Permalink
update deletion events
Browse files Browse the repository at this point in the history
Signed-off-by: bupd <[email protected]>
  • Loading branch information
bupd committed Feb 11, 2025
1 parent 66df584 commit 822e13d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/harbor/root/project/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
func DeleteProjectCommand() *cobra.Command {
var forceDelete bool
cmd := &cobra.Command{
Use: "delete [NAME]",
Use: "delete",
Short: "delete project by name or id",
Example: ` harbor project delete [NAME]`,
Example: ` harbor project delete [projectname]`,
Args: cobra.MinimumNArgs(0),
Run: func(cmd *cobra.Command, args []string) {
var wg sync.WaitGroup
Expand Down
2 changes: 1 addition & 1 deletion cmd/harbor/root/registry/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func DeleteRegistryCommand() *cobra.Command {
Use: "delete",
Short: "delete registry by name or id",
Example: "harbor registry delete [registryname]",
Args: cobra.MaximumNArgs(1),
Args: cobra.MinimumNArgs(0),
Run: func(cmd *cobra.Command, args []string) {
var wg sync.WaitGroup
errChan := make(chan error, len(args))
Expand Down

0 comments on commit 822e13d

Please sign in to comment.