Documentation
¶
Index ¶
- func ExactArgs(n int) cobra.PositionalArgs
- func MinimumNArgs(n int) cobra.PositionalArgs
- func NewCommandManager(configService ports.ConfigService) ports.CommandManager
- 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
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 NewCommandManager ¶ added in v1.2.0
func NewCommandManager(configService ports.ConfigService) ports.CommandManager
func ParseFloat ¶
func ParseProductId ¶ added in v0.16.0
Types ¶
Click to show internal directories.
Click to hide internal directories.