Documentation
¶
Index ¶
- func ExactArgs(n int) cobra.PositionalArgs
- func MinimumNArgs(n int) cobra.PositionalArgs
- func ParseFloat(value string) (float64, error)
- func ParseInteger(strId string, idType string) (int, error)
- func ParseProductId(id string) (string, error)
- func RangeArgs(min int, max int) cobra.PositionalArgs
- type Cmd
- type CmdManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExactArgs ¶
func ExactArgs(n int) cobra.PositionalArgs
ExactArgs returns an error if there are not exactly n args.
func MinimumNArgs ¶
func MinimumNArgs(n int) cobra.PositionalArgs
MinimumNArgs returns an error if there is not at least N args.
func ParseFloat ¶
func ParseProductId ¶ added in v0.16.0
Types ¶
type CmdManager ¶
type CmdManager interface {
AddCommand(cmd Cmd)
AddTmpCommand(cmd *cobra.Command) //TODO remove
Execute()
}
func NewCmdManager ¶
func NewCmdManager(configService ports.ConfigService) CmdManager
Click to show internal directories.
Click to hide internal directories.