fix: removed Run() to display error message with non-existent sub-commands

This commit is contained in:
David Allen 2025-07-09 09:51:44 -06:00
parent 0aa72ce70d
commit 264b8780a3
Signed by: towk
GPG key ID: 793B2924A49B3A3F

View file

@ -35,13 +35,6 @@ var secretsCmd = &cobra.Command{
magellan secrets list -f nodes.json`, magellan secrets list -f nodes.json`,
Short: "Manage credentials for BMC nodes", Short: "Manage credentials for BMC nodes",
Long: "Manage credentials for BMC nodes to for querying information through redfish. This requires generating a key and setting the 'MASTER_KEY' environment variable for the secrets store.", Long: "Manage credentials for BMC nodes to for querying information through redfish. This requires generating a key and setting the 'MASTER_KEY' environment variable for the secrets store.",
Run: func(cmd *cobra.Command, args []string) {
// show command help and exit
if len(args) < 1 {
cmd.Help()
os.Exit(0)
}
},
} }
var secretsGenerateKeyCmd = &cobra.Command{ var secretsGenerateKeyCmd = &cobra.Command{