Skip to content

Commit

Permalink
fix: add pvc alias to claim command
Browse files Browse the repository at this point in the history
  • Loading branch information
nobbs committed Jan 15, 2024
1 parent 0e2eefd commit cbeb8c9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions internal/cli/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ func newClaimCmd(rootOpts *rootCmdOptions) *cobra.Command {
o := NewClaimOptions(rootOpts)

cmd := &cobra.Command{
Use: claimUse,
Short: claimShort,
Long: util.CliLongDesc(claimLong),
Aliases: []string{"pvc"},
Use: claimUse,
Short: claimShort,
Long: util.CliLongDesc(claimLong),
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
return nil, cobra.ShellCompDirectiveNoFileComp
},
RunE: func(cmd *cobra.Command, args []string) error {
if err := o.Complete(cmd, args); err != nil {
return err
Expand Down

0 comments on commit cbeb8c9

Please sign in to comment.