Documentation ¶
Index ¶
- Constants
- Variables
- func AddCliConfigToFlags(flags *pflag.FlagSet, options uint)
- func AddLibraryConfigToFlags(flags *pflag.FlagSet)
- func DumpStatistics(statistics connector.Statistics)
- func JsonToStdout(data interface{}) (err error)
- func LibraryConfigFromViper() (config *lib.Config, err error)
- func NewProgressIndicator(cfg *CliConfig) *progressIndicator
- func PromptPassword(config *lib.Config) (err error)
- func SerializeToStdout(data interface{}, cfg *CliConfig) error
- func SetupViper(cmd *cobra.Command)
- func YamlToStdout(data interface{}) (err error)
- type CliConfig
- type LibraryFlags
- type Sortable
- type TemplateRepository
Constants ¶
View Source
const ( CLI_OPTION_RECURSION_LEVEL = 1 << iota CLI_OPTION_STATISTICS CLI_OPTION_PROGRESS CLI_OPTION_JSON_OUTPUT CLI_OPTION_MANIFEST_VERSION CLI_OPTION_INTERACTIVE_PASSWORD CLI_OPTION_TABLE_OUTPUT CLI_OPTION_DEBUG CLI_OPTION_TEMPLATE CLI_OPTION_TEMPLATE_SOURCE )
View Source
const ( CLI_OPTIONS_FULL = 0xFFFFFFFF CLI_OPTIONS_NONE = 0 )
View Source
const STATISTICS_TEMPLATE = `` /* 238-byte string literal not displayed */
Variables ¶
View Source
var AutocompleteCmd = &cobra.Command{
Use: "autocomplete",
Short: "Generate autocompletion snippet",
Long: "Generate autocompletion snippet for either bash or zsh",
}
Functions ¶
func AddCliConfigToFlags ¶ added in v0.3.0
func AddLibraryConfigToFlags ¶ added in v0.3.0
func DumpStatistics ¶ added in v0.3.0
func DumpStatistics(statistics connector.Statistics)
func JsonToStdout ¶ added in v0.3.0
func JsonToStdout(data interface{}) (err error)
func LibraryConfigFromViper ¶ added in v0.3.0
func NewProgressIndicator ¶ added in v0.3.0
func NewProgressIndicator(cfg *CliConfig) *progressIndicator
func PromptPassword ¶
func SerializeToStdout ¶ added in v0.3.0
func SetupViper ¶ added in v0.3.0
func YamlToStdout ¶ added in v0.3.0
func YamlToStdout(data interface{}) (err error)
Types ¶
type CliConfig ¶ added in v0.3.0
type CliConfig struct { RecursionLevel uint ManifestVersion uint Statistics bool Progress bool JsonOutput bool InteractivePassword bool TableOutput bool Debug bool Template string TemplateSource string // contains filtered or unexported fields }
func CliConfigFromViper ¶ added in v0.3.0
func NewCliConfig ¶ added in v0.3.0
func NewCliConfig() *CliConfig
type LibraryFlags ¶ added in v0.3.0
type TemplateRepository ¶ added in v0.3.2
func TemplateRepositoryFromConfig ¶ added in v0.3.2
func TemplateRepositoryFromConfig() (t TemplateRepository, err error)
Click to show internal directories.
Click to hide internal directories.