mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
fix: removed Run() to display error message with non-existent sub-commands
This commit is contained in:
parent
0aa72ce70d
commit
264b8780a3
1 changed files with 0 additions and 7 deletions
|
|
@ -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{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue