config

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScwConfigPathEnv = "SCW_CLI_CONFIG_PATH"

	DefaultConfigFileName = "cli.yaml"
)

Variables

This section is empty.

Functions

func FilePath

func FilePath() (string, error)

Types

type Config

type Config struct {
	Alias *alias.Config `json:"alias"`
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

LoadConfig tries to load config file returns a new empty config if file doesn't exist return error if fail to load config file

func (*Config) Save

func (c *Config) Save() error

Save marshal config to config file

Jump to

Keyboard shortcuts

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