libs

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RefsDir              = ".refs"
	DefaultInventoryFile = "k2.inventory.yaml"
)
View Source
const (
	IconApply   = greenColor + "✓" + resetColor
	IconDestroy = redColor + "✗" + resetColor
	IconResolve = cyanColor + "◆" + resetColor
	IconPlan    = yellowColor + "▪" + resetColor
)

Variables

This section is empty.

Functions

func BoldStyle added in v0.10.0

func BoldStyle() string

func CyanColor added in v0.10.0

func CyanColor() string

func ExecCommand

func ExecCommand(script string, cwd string, tplData any) error

func GrayColor added in v0.10.0

func GrayColor() string

func GreenCol added in v0.10.0

func GreenCol() string

func MergeMaps added in v0.9.7

func MergeMaps(maps ...map[string]any) map[string]any

func RedColor added in v0.10.0

func RedColor() string

func RenderTemplate

func RenderTemplate(tmpl string, data any) ([]byte, error)

func ResetCol added in v0.10.0

func ResetCol() string

func WriteBanner added in v0.10.0

func WriteBanner(version string)

func WriteDetail added in v0.10.0

func WriteDetail(format string, a ...any)

func WriteError added in v0.9.26

func WriteError(err error) error

func WriteErrorString added in v0.9.26

func WriteErrorString(err string) error

func WriteErrorf added in v0.9.26

func WriteErrorf(format string, a ...any) error

func WriteOutput added in v0.9.26

func WriteOutput(line string)

func WriteOutputf added in v0.9.26

func WriteOutputf(format string, a ...any)

func WriteStackBanner added in v0.10.0

func WriteStackBanner(verb, stack string, layerCount int)

func WriteStackLinksTable added in v0.10.0

func WriteStackLinksTable(links []StackLink)

func WriteStackStatusTable added in v0.10.0

func WriteStackStatusTable(statuses []StackStatus)

func WriteStackStepFail added in v0.10.0

func WriteStackStepFail(plan, message string)

func WriteStackStepOk added in v0.10.0

func WriteStackStepOk(plan, message string)

func WriteStackStepSkip added in v0.10.0

func WriteStackStepSkip(plan, reason string)

func WriteStackStepStart added in v0.10.0

func WriteStackStepStart(current, total int, verb, ref string)

func WriteStackSummary added in v0.10.0

func WriteStackSummary(verbPast, stack string, successCount, total int, failures []string)

func WriteStep added in v0.10.0

func WriteStep(icon string, format string, a ...any)

func WriteSubStep added in v0.10.0

func WriteSubStep(format string, a ...any)

func WriteTitle added in v0.10.0

func WriteTitle(format string, a ...any)

func YellowCol added in v0.10.0

func YellowCol() string

Types

type StackLink struct {
	Label string
	URL   string
}

type StackStatus added in v0.10.0

type StackStatus struct {
	Ref    string
	Status string
	URL    string
}

Jump to

Keyboard shortcuts

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