config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidKey = errors.New("invalid key")
)

Functions

func ValididateKey

func ValididateKey(key string) (*cfg.Option, error)

Types

type Command

type Command struct {
	Command *cobra.Command
}

Command is the parent command for all configuration related commands.

func NewCommand

func NewCommand() *Command

type GetCommand

type GetCommand struct {
	Command *cobra.Command
	// contains filtered or unexported fields
}

func NewGetCommand

func NewGetCommand() *GetCommand

func (*GetCommand) Execute

func (c *GetCommand) Execute(_ *cobra.Command, args []string) error

type SetCommand

type SetCommand struct {
	Command *cobra.Command
}

SetCommand is the command to update the configuration.

func NewSetCommand

func NewSetCommand() *SetCommand

func (*SetCommand) Execute

func (c *SetCommand) Execute(_ *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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