Documentation
¶
Index ¶
- Constants
- func BoldStyle() string
- func CyanColor() string
- func ExecCommand(script string, cwd string, tplData any) error
- func GrayColor() string
- func GreenCol() string
- func MergeMaps(maps ...map[string]any) map[string]any
- func RedColor() string
- func RenderTemplate(tmpl string, data any) ([]byte, error)
- func ResetCol() string
- func WriteBanner(version string)
- func WriteDetail(format string, a ...any)
- func WriteError(err error) error
- func WriteErrorString(err string) error
- func WriteErrorf(format string, a ...any) error
- func WriteOutput(line string)
- func WriteOutputf(format string, a ...any)
- func WriteStackBanner(verb, stack string, layerCount int)
- func WriteStackLinksTable(links []StackLink)
- func WriteStackStatusTable(statuses []StackStatus)
- func WriteStackStepFail(plan, message string)
- func WriteStackStepOk(plan, message string)
- func WriteStackStepSkip(plan, reason string)
- func WriteStackStepStart(current, total int, verb, ref string)
- func WriteStackSummary(verbPast, stack string, successCount, total int, failures []string)
- func WriteStep(icon string, format string, a ...any)
- func WriteSubStep(format string, a ...any)
- func WriteTitle(format string, a ...any)
- func YellowCol() string
- type StackLink
- type StackStatus
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 WriteBanner ¶ added in v0.10.0
func WriteBanner(version string)
func WriteDetail ¶ added in v0.10.0
func WriteError ¶ added in v0.9.26
func WriteErrorString ¶ added in v0.9.26
func WriteErrorf ¶ added in v0.9.26
func WriteOutput ¶ added in v0.9.26
func WriteOutput(line string)
func WriteOutputf ¶ added in v0.9.26
func WriteStackBanner ¶ added in v0.10.0
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 WriteStackSummary ¶ added in v0.10.0
func WriteSubStep ¶ added in v0.10.0
func WriteTitle ¶ added in v0.10.0
Types ¶
type StackStatus ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.