cli

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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 ParseFloat(value string) (float64, error)

func ParseInteger

func ParseInteger(strId string, idType string) (int, error)

func ParseProductId added in v0.16.0

func ParseProductId(id string) (string, error)

func RangeArgs

func RangeArgs(min int, max int) cobra.PositionalArgs

RangeArgs returns an error if the number of args is not within the expected range.

Types

type Cmd

type Cmd interface {
	Cmd() *cobra.Command
}

Directories

Path Synopsis
dto

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL