Skip to content

Commit

Permalink
Add get packagebundlecontroller command (#2761)
Browse files Browse the repository at this point in the history
* Add get packagebundlecontroller command

* Update cmd/eksctl-anywhere/cmd/getpackagebundlecontroller.go
  • Loading branch information
TerryHowe authored Jul 20, 2022
1 parent 59f038d commit fe9290a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cmd/eksctl-anywhere/cmd/getpackagebundlecontroller.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package cmd

import (
"github.com/spf13/cobra"
)

type getPackageBundleControllerOptions struct {
output string
}

var gpbco = &getPackageBundleControllerOptions{}

func init() {
getCmd.AddCommand(getPackageBundleControllerCommand)
getPackageBundleControllerCommand.Flags().StringVarP(&gpbco.output, "output", "o", "", "Specifies the output format (valid option: json, yaml)")
}

var getPackageBundleControllerCommand = &cobra.Command{
Use: "packagebundlecontroller(s) [flags]",
Aliases: []string{"packagebundlecontroller", "packagebundlcontrolleres", "pbc"},
Short: "Get packagebundlecontroller(s)",
Long: "This command is used to display the current packagebundlecontrollers",
PreRunE: preRunPackages,
SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {
return getResources(cmd.Context(), "packagebundlecontrollers", gpbco.output, args)
},
}

0 comments on commit fe9290a

Please sign in to comment.