Documentation ¶
Index ¶
- Constants
- func CheckErr(err error)
- func GetNewTabWriter(output io.Writer) *tabwriter.Writer
- func HelpError(cmd *cobra.Command, args ...interface{}) error
- func HelpErrorf(cmd *cobra.Command, format string, args ...interface{}) error
- func PrintTable(header table.Row, rows []table.Row)
- func StringToMapPointer(s string) map[string]*string
- func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error
- func Wrap(text string, lineWidth int) string
- type StringFlag
Constants ¶
View Source
const (
DefaultErrorExitCode = 1
)
Variables ¶
This section is empty.
Functions ¶
func StringToMapPointer ¶ added in v0.1.4
mapToMapPointer split string=string to a map[string]string
Types ¶
type StringFlag ¶
type StringFlag struct {
// contains filtered or unexported fields
}
func (*StringFlag) Default ¶
func (f *StringFlag) Default(value string)
func (StringFlag) Provided ¶
func (f StringFlag) Provided() bool
func (*StringFlag) Set ¶
func (f *StringFlag) Set(value string) error
func (StringFlag) String ¶
func (f StringFlag) String() string
func (*StringFlag) Type ¶
func (f *StringFlag) Type() string
func (StringFlag) Value ¶
func (f StringFlag) Value() string
Click to show internal directories.
Click to hide internal directories.