Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiMeta ¶
type ApiMeta struct {
Color bool // True if output should be colored
Ui cli.Ui // Ui for output
// Gate Api client.
GateClient *gate.APIClient
// Spin CLI configuration.
Config config.Config
// contains filtered or unexported fields
}
ApiMeta is the state & utility shared by our commands.
func (*ApiMeta) Colorize ¶
func (m *ApiMeta) Colorize() *colorstring.Colorize
Colorize initializes the ui colorization.
func (*ApiMeta) GlobalFlagSet ¶
GlobalFlagSet adds all global options to the flagset, and returns the flagset object for further modification by the subcommand.
type ColorizeUi ¶
type ColorizeUi struct {
Colorize *colorstring.Colorize
OutputColor string
InfoColor string
ErrorColor string
WarnColor string
Ui cli.Ui
}
func (*ColorizeUi) Error ¶
func (u *ColorizeUi) Error(message string)
func (*ColorizeUi) Info ¶
func (u *ColorizeUi) Info(message string)
func (*ColorizeUi) Output ¶
func (u *ColorizeUi) Output(message string)
func (*ColorizeUi) Warn ¶
func (u *ColorizeUi) Warn(message string)
Click to show internal directories.
Click to hide internal directories.