cfg

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	Set CfgSet `cmd:"" name:"set" aliases:"s" help:"set a property in the config file"`
	Get CfgGet `cmd:"" name:"get" aliases:"g" help:"get a property from the config file"`
}

type CfgGet

type CfgGet struct {
	Key string `arg:"" enum:"${config_keys}" help:"name of the parameter that is being read"`
}

func (*CfgGet) Run

func (g *CfgGet) Run(ctx context.Context, logger log.FLogger, config client.Config) error

type CfgSet

type CfgSet struct {
	Key   string `arg:"" enum:"${config_keys}" help:"name of the parameter that is being set"`
	Value string `arg:"" help:"value of the parameter that is being set"`
}

func (*CfgSet) Run

func (g *CfgSet) Run(ctx context.Context, logger log.FLogger, config client.Config) error

Jump to

Keyboard shortcuts

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