Skip to content

Commit

Permalink
Rename rpkg cli var
Browse files Browse the repository at this point in the history
  • Loading branch information
efiacor committed Jan 16, 2024
1 parent 7b47ea5 commit d9d578d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cli/commands/rpkg/rpkgcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
)

func NewCommand(ctx context.Context, version string) *cobra.Command {
repo := &cobra.Command{
rpkg := &cobra.Command{
Use: "rpkg",
Aliases: []string{"rpackage"},
Short: docs.RpkgShort,
Expand All @@ -57,7 +57,7 @@ func NewCommand(ctx context.Context, version string) *cobra.Command {
Hidden: porch.HidePorchCommands,
}

pf := repo.PersistentFlags()
pf := rpkg.PersistentFlags()

kubeflags := genericclioptions.NewConfigFlags(true)
kubeflags.AddFlags(pf)
Expand All @@ -69,7 +69,7 @@ func NewCommand(ctx context.Context, version string) *cobra.Command {

pf.AddGoFlagSet(flag.CommandLine)

repo.AddCommand(
rpkg.AddCommand(
get.NewCommand(ctx, kubeflags),
pull.NewCommand(ctx, kubeflags),
push.NewCommand(ctx, kubeflags),
Expand All @@ -84,5 +84,5 @@ func NewCommand(ctx context.Context, version string) *cobra.Command {
proposedelete.NewCommand(ctx, kubeflags),
)

return repo
return rpkg
}

0 comments on commit d9d578d

Please sign in to comment.