config

package
v0.0.0-...-98ed532 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(prime primeable) (*Config, error)

func (*Config) Run

func (c *Config) Run(usageFunc func() error) error

type Get

type Get struct {
	// contains filtered or unexported fields
}

func NewGet

func NewGet(prime primeable) *Get

func (*Get) Run

func (g *Get) Run(params GetParams) error

type GetParams

type GetParams struct {
	Key Key
}

type Key

type Key string

func (*Key) Set

func (k *Key) Set(v string) error

Set implements the captain ArgMarshaler interface

func (Key) String

func (k Key) String() string

type Set

type Set struct {
	// contains filtered or unexported fields
}

func NewSet

func NewSet(prime primeable) *Set

func (*Set) Run

func (s *Set) Run(params SetParams) error

type SetParams

type SetParams struct {
	Key   Key
	Value string
}

Jump to

Keyboard shortcuts

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