resolve

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package resolve turns a Config + the current git/cwd state into a concrete project, active profile, and the resolved key/value set (walking `extends`).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Values

func Values(cfg *config.Config, ctx Context, data store.Data) (map[string]string, []string)

Values returns the resolved key=value map for the declared keys, walking the extends chain (active -> ... -> extends) within the same project. Missing declared keys are returned in the second result.

Types

type Context

type Context struct {
	Project string
	Profile string // active profile after any detached-HEAD fallback
	Warning string // non-fatal note (e.g. fell back to cwd)
}

Context is the resolved addressing for a hush operation.

func Resolve

func Resolve(cfg *config.Config) (Context, error)

Resolve computes the project namespace and active profile from cfg.

Jump to

Keyboard shortcuts

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