Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigAvailableKeys = []string{"token", "offline"}
Functions ¶
func New ¶
func New(ctx *ConfigCommandContext) *cobra.Command
func NewGetCommand ¶
func NewGetCommand(ctx *ConfigCommandContext) *cobra.Command
func NewSetCommand ¶
func NewSetCommand(ctx *ConfigCommandContext) *cobra.Command
Types ¶
type ConfigCommandContext ¶
type ConfigCommandContext struct {
Messager Messager
CliVersion string
Printer Printer
LocalConfig LocalConfig
}
type LocalConfig ¶
type LocalConfig interface {
GetLocalConfiguration() (*localConfig.LocalConfig, error)
Set(key string, value string) error
Get(key string) string
}
type Messager ¶
type Messager interface {
LoadVersionMessages(cliVersion string) chan *messager.VersionMessage
}
Click to show internal directories.
Click to hide internal directories.