Documentation
¶
Overview ¶
Package config reads and writes the CLI configuration exactly as the TypeScript CLI did, so that an upgrade keeps every profile a user has already set up.
Index ¶
Constants ¶
View Source
const DefaultBaseURL = "https://platform.steadybit.com"
Variables ¶
View Source
var ProfileOverride string
ProfileOverride is the --profile flag: the profile to use instead of the active one, for this command only.
Functions ¶
func AddProfile ¶
func RemoveProfile ¶
func SetActiveProfile ¶
Types ¶
type Configuration ¶
func Load ¶
func Load() (Configuration, error)
Load resolves the configuration: environment variables win over the active profile. An empty STEADYBIT_TOKEN counts as set, as it did in the TypeScript CLI, so that a pipeline can deliberately blank it out.
Click to show internal directories.
Click to hide internal directories.