Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate returns the contents of a fresh .bight.yml.
`copySource`, if non-empty, emits a `copy:` block on the env_file so a freshly-created worktree seeds the dest from that path (resolved against the main worktree root). When empty, a commented `copy:` hint is emitted instead so the option is discoverable later.
Types ¶
type Config ¶
type Config struct {
Project string `yaml:"project"`
Defaults Defaults `yaml:"defaults"`
EnvFiles []EnvFile `yaml:"env_files"`
}
func Load ¶
Load discovers and loads config. It returns the loaded config along with the path that was loaded — either the matched repo config filename in the current directory (".bight.yml" or ".bight.yaml") or, if only the global config exists, the global config path.
type Copy ¶ added in v0.3.0
Copy describes how to seed an env file by copying it from elsewhere. In YAML, copy may be given as either a scalar (the source path, with Overwrite defaulting to false) or a mapping with explicit source and overwrite fields:
copy: ../main/.env
copy: { source: ../main/.env, overwrite: true }
Overwrite controls only the file copy step. Var patching always rewrites the keys it targets regardless of this setting.