Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliContext ¶
type CliContext struct { ConfigDir string `json:"config_dir,omitempty"` ConfigFile string `json:"config_file,omitempty"` Verbose bool `json:"verbose"` Debug bool `json:"debug"` StructuredOutput bool `json:"structured_output"` V3 bool `json:"v3"` }
func GetContext ¶
func GetContext() *CliContext
func (*CliContext) ConfigFilename ¶
func (c *CliContext) ConfigFilename() string
func (*CliContext) DLog ¶
func (c *CliContext) DLog(title string)
func (*CliContext) Log ¶
func (c *CliContext) Log(title string)
func (*CliContext) UseStructuredOutput ¶
func (c *CliContext) UseStructuredOutput() bool
func (*CliContext) Write ¶
func (c *CliContext) Write(w io.Writer)
func (*CliContext) WriteReadable ¶
func (c *CliContext) WriteReadable(w io.Writer)
Click to show internal directories.
Click to hide internal directories.