-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add get packagebundlecontroller command (#2761)
* Add get packagebundlecontroller command * Update cmd/eksctl-anywhere/cmd/getpackagebundlecontroller.go
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
}, | ||
} |