config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRuntimeCommand = "docker"
	DefaultDaemonImage    = "ghcr.io/mickamy/trcd:latest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Runtime string `yaml:"runtime"`
}

Command configures which container runtime binary to invoke.

type Config

type Config struct {
	Command     Command `yaml:"command"`
	DaemonImage string  `yaml:"daemon_image"`
}

Config holds all trc settings, resolved from global + local files.

func Load

func Load(projectDir, globalPath string) (Config, error)

Load reads config from .trc.yaml in projectDir (project-local) and globalPath (global), merging with project-local taking priority. Both files are optional; missing files are silently ignored.

func LoadDefault

func LoadDefault() (Config, error)

LoadDefault loads config using the current directory and the standard global config path (~/.config/trc.yaml).

Jump to

Keyboard shortcuts

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