diff --git a/internal/cli/cmd/cmd.go b/internal/cli/cmd/cmd.go deleted file mode 100644 index 245db6f..0000000 --- a/internal/cli/cmd/cmd.go +++ /dev/null @@ -1,32 +0,0 @@ -package cmd - -import ( - "flag" - "fmt" - "os" -) - -type Cmd struct { - // command name - Name string - - // short usage message to be used in the app - Short string - - // long usage message - Long string - - // flag set - Flags *flag.FlagSet -} - -func (c *Cmd) Init() { - if c.Name == "" { - panic("cmd: missing Name") - } - c.Flags = flag.NewFlagSet(c.Name, flag.ContinueOnError) - c.Flags.Usage = func() { - fmt.Fprint(os.Stderr, c.Long) - c.Flags.PrintDefaults() - } -}