config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigFilename   = ".devctl.yaml"
	DefaultOverrideFilename = ".devctl.override.yaml"
)

Variables

This section is empty.

Functions

func DefaultOverridePath added in v0.0.6

func DefaultOverridePath(repoRoot string) string

func DefaultPath

func DefaultPath(repoRoot string) string

Types

type File

type File struct {
	Profile    ProfileBlock        `yaml:"profile,omitempty"`
	Profiles   map[string]*Profile `yaml:"profiles,omitempty"`
	Plugins    []Plugin            `yaml:"plugins"`
	Strictness string              `yaml:"strictness,omitempty"` // "warn" | "error"
}

func LoadFromFile

func LoadFromFile(path string) (*File, error)

func LoadOptional

func LoadOptional(path string) (*File, error)

func LoadStacked added in v0.0.6

func LoadStacked(basePath, overridePath string) (*File, error)

func (*File) Clone added in v0.0.6

func (f *File) Clone() *File

func (*File) GetProfile added in v0.0.6

func (f *File) GetProfile(name string) *Profile

func (*File) Merge added in v0.0.6

func (f *File) Merge(override *File) *File

func (*File) ResolveProfile added in v0.0.6

func (f *File) ResolveProfile(explicitFlag string) string

func (*File) ValidateProfile added in v0.0.6

func (f *File) ValidateProfile(name string) error

type Plugin

type Plugin struct {
	ID       string            `yaml:"id"`
	Path     string            `yaml:"path"`
	Args     []string          `yaml:"args,omitempty"`
	Priority int               `yaml:"priority,omitempty"`
	WorkDir  string            `yaml:"workdir,omitempty"`
	Env      map[string]string `yaml:"env,omitempty"`
}

type Profile added in v0.0.6

type Profile struct {
	DisplayName string            `yaml:"display_name,omitempty"`
	Description string            `yaml:"description,omitempty"`
	Plugins     []string          `yaml:"plugins,omitempty"`
	Env         map[string]string `yaml:"env,omitempty"`
}

type ProfileBlock added in v0.0.6

type ProfileBlock struct {
	Active string `yaml:"active,omitempty"`
}

Jump to

Keyboard shortcuts

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