config

package
v0.1.773-DAT-3209-sema... Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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.ConfigContent, error)
	Set(key string, value string) error
}

type Messager

type Messager interface {
	LoadVersionMessages(messages chan *messager.VersionMessage, cliVersion string)
}

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