cliutil

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 3 Imported by: 1

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

Jump to

Keyboard shortcuts

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