// // cli_base.go // Copyright (C) 2022 tiglog // // Distributed under terms of the MIT license. // package console import "flag" type BaseCmd struct { Name string Desc string FlagSet *flag.FlagSet Action ActionHandler } func (c *BaseCmd) GetName() string { return c.Name } func (c *BaseCmd) GetDesc() string { return c.Desc } func (c *BaseCmd) GetAction() ActionHandler { return c.Action }