config

package
v1.8.46-rc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigAvailableKeys = []string{"token", "offline"}

Functions

func New

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
}

type Printer

type Printer interface {
	PrintMessage(messageText string, messageColor string)
}

Jump to

Keyboard shortcuts

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