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