Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScwConfigPathEnv = "SCW_CLI_CONFIG_PATH" DefaultConfigFileName = "cli.yaml" DefaultOutput = "human" )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultEditor ¶ added in v2.14.0
func GetDefaultEditor() string
func GetSystemDefaultEditor ¶ added in v2.14.0
func GetSystemDefaultEditor() string
Types ¶
type Config ¶
type Config struct { Alias *alias.Config `json:"alias" yaml:"alias"` Output string `json:"output" yaml:"output"` // contains filtered or unexported fields }
func LoadConfig ¶
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) HumanConfig ¶ added in v2.15.0
HumanConfig will generate a config file with documented arguments
Click to show internal directories.
Click to hide internal directories.