Documentation ¶
Index ¶
- Constants
- func AddDocs(root *cobra.Command)
- func AddShell(root *cobra.Command)
- func GetFileOrStr(str string) (string, error)
- func GetStringValue(data interface{}, key string) (string, error)
- func LoadFromFile(file string, data interface{}) error
- func SaveToFile(file string, data interface{}) (oerr error)
- func ToJson(data interface{}) string
- type CLIConfig
- func (cfg *CLIConfig) GetBoolDefault(key string, dftl bool) (bool, error)
- func (cfg *CLIConfig) GetIntDefault(key string, dftl int) (int, error)
- func (cfg *CLIConfig) GetStringDefault(key string, dftl string) string
- func (cfg *CLIConfig) Set(config string) error
- func (e *CLIConfig) String() string
- func (cfg *CLIConfig) Type() string
- type Enum
- type EnumSlice
Constants ¶
View Source
const FILE_PREFIX = "file:"
Variables ¶
This section is empty.
Functions ¶
func GetFileOrStr ¶
func GetStringValue ¶
func LoadFromFile ¶
func SaveToFile ¶
Types ¶
type CLIConfig ¶
func (*CLIConfig) GetBoolDefault ¶
func (*CLIConfig) GetIntDefault ¶
func (*CLIConfig) GetStringDefault ¶
type EnumSlice ¶
func NewEnumSlice ¶
Click to show internal directories.
Click to hide internal directories.