Documentation ¶
Overview ¶
Package cliutil adds some utility types for using in a CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommaSepOptionList ¶ added in v0.6.0
type CommaSepOptionList []string
CommaSepOptionList is a list for comma-separated options.
func (*CommaSepOptionList) Set ¶ added in v0.6.0
func (cl *CommaSepOptionList) Set(value string) error
Set sets a comma-separated string to a list.
func (CommaSepOptionList) String ¶ added in v0.6.0
func (cl CommaSepOptionList) String() string
type CommaSepOptionSet ¶ added in v0.6.0
type CommaSepOptionSet map[string]struct{}
CommaSepOptionSet is a set for comma-separated options.
func (*CommaSepOptionSet) Set ¶ added in v0.6.0
func (cs *CommaSepOptionSet) Set(value string) error
Set sets a comma-separated string to a set.
func (CommaSepOptionSet) String ¶ added in v0.6.0
func (cs CommaSepOptionSet) String() string
type MultiValueOptionList ¶ added in v0.7.0
type MultiValueOptionList []string
MultiValueOptionList is a list for options with multiple values.
func (*MultiValueOptionList) Set ¶ added in v0.7.0
func (mvl *MultiValueOptionList) Set(value string) error
Set appends value to the underlying list.
func (MultiValueOptionList) String ¶ added in v0.7.0
func (mvl MultiValueOptionList) String() string
type MultiValueOptionSet ¶ added in v0.7.0
type MultiValueOptionSet map[string]struct{}
MultiValueOptionSet is a set for options with multiple values.
func (*MultiValueOptionSet) Set ¶ added in v0.7.0
func (mvs *MultiValueOptionSet) Set(value string) error
Set adds value to the underlying set.
func (MultiValueOptionSet) String ¶ added in v0.7.0
func (mvs MultiValueOptionSet) String() string
Click to show internal directories.
Click to hide internal directories.