config

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(ctx context.Context, c *cli.Command) error

func Save

func Save(_ context.Context, c *cli.Command, _configPath string, conf *Config) error

Types

type Config

type Config struct {
	ServerURL string `json:"server_url"`
	Token     string `json:"-"`
	LogLevel  string `json:"log_level"`
}

func Get

func Get(_ context.Context, c *cli.Command, _configPath string) (*Config, error)

func (*Config) MergeIfNotSet added in v2.6.0

func (c *Config) MergeIfNotSet(c2 *Config)

Jump to

Keyboard shortcuts

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