We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1674ed8 commit 267d2d9Copy full SHA for 267d2d9
1 file changed
cmd/list.go
@@ -1,6 +1,7 @@
1
package cmd
2
3
import (
4
+ "github.com/myerscode/aws-meta/internal/util"
5
"github.com/spf13/cobra"
6
)
7
@@ -17,7 +18,9 @@ Use the available subcommands to list specific types of metadata:
17
18
Each subcommand supports optional flags for different output formats.`,
19
Run: func(cmd *cobra.Command, args []string) {
20
// Show help when list command is run without subcommands
- cmd.Help()
21
+ if err := cmd.Help(); err != nil {
22
+ util.LogError("Error displaying help: " + err.Error())
23
+ }
24
},
25
}
26
0 commit comments