flags

package
v0.0.5-beta.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolVarWithViper

func BoolVarWithViper(cmd *cobra.Command, p *bool, viperPrefix, name string, value bool, usage string)

func Float64VarWithViper

func Float64VarWithViper(cmd *cobra.Command, p *float64, viperPrefix, name string, value float64, usage string)

func IntVarWithViper

func IntVarWithViper(cmd *cobra.Command, p *int, viperPrefix, name string, value int, usage string)

func PersistentStringVarWithViper

func PersistentStringVarWithViper(cmd *cobra.Command, p *string, viperPrefix, name, value, usage string)

func StringVarWithViper

func StringVarWithViper(cmd *cobra.Command, p *string, viperPrefix, name, value, usage string)

Types

type GlobalFlags

type GlobalFlags struct {
	//BaskiConfigFlag string
	CloudsPathFlag string
	CloudNameFlag  string
}

GlobalFlags are not specific to a single command and can be included across many

func (*GlobalFlags) AddFlags

func (o *GlobalFlags) AddFlags(cmd *cobra.Command)

Jump to

Keyboard shortcuts

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