master
1package get
2
3import (
4 "log/slog"
5 "os"
6
7 "github.com/spf13/cobra"
8)
9
10var Cmd = &cobra.Command{
11 Use: "get",
12 Short: "Obtain information",
13 Long: `Obtain information`,
14 Run: func(cmd *cobra.Command, args []string) {
15 if len(args) == 0 {
16 err := cmd.Help()
17 if err != nil {
18 slog.Error("Failed to display help")
19 os.Exit(1)
20 }
21 os.Exit(0)
22 }
23 },
24}