context

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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)

Jump to

Keyboard shortcuts

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