From 264b8780a3bbe582cb3c7be3cb4b82484c8c308b Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 9 Jul 2025 09:51:44 -0600 Subject: [PATCH] fix: removed Run() to display error message with non-existent sub-commands --- cmd/secrets.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/secrets.go b/cmd/secrets.go index 2943822..faef275 100644 --- a/cmd/secrets.go +++ b/cmd/secrets.go @@ -35,13 +35,6 @@ var secretsCmd = &cobra.Command{ magellan secrets list -f nodes.json`, 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.", - 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{