Documentation
¶
Overview ¶
Package profile defines the core profile structure and environment variable handling. It provides functionality for converting profiles to environment configurations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Env ¶
Env is a map of environment variable names to their non-stringified values.
func (*Env) Stringified ¶ added in v0.0.1
Stringified serializes Env into env.Env using Stringify. – Scalars pass through unchanged. – Non-scalars are JSON-minified and single-quoted (see Stringify).
type Profile ¶
type Profile struct {
// Env is a collection of environment variables.
Env Env `toml:"env,omitempty" yaml:"env,omitempty"`
// Extends is a list of references to other places to extend from.
Extends extends.Extends `toml:"extends,omitempty" yaml:"extends,omitempty"`
// Output is the desired output file.
Output string `toml:"output,omitempty" yaml:"output,omitempty"`
// Default indicates whether this profile is the default one.
Default bool `toml:"default,omitempty" yaml:"default,omitempty"`
}
Profile represents a configuration profile with environment variables and metadata.
func (*Profile) ToEnv ¶
func (p *Profile) ToEnv(name string) (environment.Environment, error)
ToEnv converts the profile to an environment representation, stringifying the environment variables.
Click to show internal directories.
Click to hide internal directories.