config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(project, envFilePath string, vars []Var) string

Types

type Config

type Config struct {
	Project  string    `yaml:"project"`
	Defaults Defaults  `yaml:"defaults"`
	EnvFiles []EnvFile `yaml:"env_files"`
}

func Load

func Load() (*Config, error)

func LoadFrom

func LoadFrom(repoConfigPath string) (*Config, error)

LoadFrom loads config from a specific repo config file path, merging with the global config (~/.bight.yml) as usual. Unlike Load, it does not search for .bight.yml or .bight.yaml in the current directory.

type Defaults

type Defaults struct {
	BranchTemplate  string `yaml:"branch_template"`
	CollectComments string `yaml:"collect-comments"`
}

type EnvFile

type EnvFile struct {
	Path   string `yaml:"path"`
	Backup bool   `yaml:"backup"`
	Vars   []Var  `yaml:"vars"`
}

type Var

type Var struct {
	Name      string `yaml:"name"`
	Strategy  string `yaml:"strategy"`
	On        string `yaml:"on"`
	Sensitive bool   `yaml:"sensitive"`
}

Jump to

Keyboard shortcuts

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