config

package
v0.0.0-...-691490b Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyActive      string = "active"
	KeyAlias       string = "aliases"
	KeyEnvironment string = "environments"
)

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(appName, configName string) (*Config, error)

func (*Config) Get

func (c *Config) Get(ctx *cli.Context, key string) (string, error)

func (*Config) GetAlias

func (c *Config) GetAlias(alias string) (string, error)

func (*Config) GetAliases

func (c *Config) GetAliases() (map[string]string, error)

func (*Config) GetByEnvironment

func (c *Config) GetByEnvironment(ctx *cli.Context, key string) (string, error)

func (*Config) Set

func (c *Config) Set(ctx *cli.Context, key string, value string) error

func (*Config) SetByEnvironment

func (c *Config) SetByEnvironment(ctx *cli.Context, key string, value string) error

Jump to

Keyboard shortcuts

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