Documentation ¶
Index ¶
- Constants
- Variables
- func BindCommandArgs(values ...*string) func(c *cobra.Command, args []string) error
- func GetBody(o IOptions, tpl string) (buf []byte, err error)
- func HomeDir() string
- func OnConfigInitialize(cfgFile string) error
- func ValidateError(c *cobra.Command, err error)
- type ConfigContext
- type IOStreams
- type IOptions
- type Options
- type Output
- type OutputType
Constants ¶
View Source
const ( OUTPUT_JSON = "json" OUTPUT_YAML = "yaml" )
Variables ¶
View Source
var ( BuildVersion string = "" BuildTime string = "" )
#!/usr/bin/env bash version=0.1.0 go build -ldflags="-X 'github.com/itnpeople/cbctl/app.BuildTime=$(date -u +%FT%T%Z)' -X 'github.com/itnpeople/cbctl/app.BuildVersion=$version'" .
View Source
var (
Config *conf
)
Functions ¶
func BindCommandArgs ¶ added in v0.2.0
func OnConfigInitialize ¶ added in v0.1.0
func ValidateError ¶
Types ¶
type ConfigContext ¶ added in v0.1.0
type Options ¶ added in v0.2.0
type Options struct { OutStream *os.File // output stream ConfigFile string // config file Output string // output format (json/yaml) Filename string // file Namespace string // cloud-barista namespace Name string // object name }
func (*Options) GetFilename ¶ added in v0.2.0
func (*Options) PrintlnError ¶ added in v0.2.0
type Output ¶
func (*Output) WriteString ¶ added in v0.1.0
type OutputType ¶
type OutputType string
Click to show internal directories.
Click to hide internal directories.