MCPcopy Create free account
hub / github.com/box-cli-maker/box-cli-maker / main

Function main

examples/ksctl/main.go:9–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func main() {
10 // An example from ksctl tool
11 // It didn't work in v2 due to inconsistent padding
12 // when title is bigger than content width
13 title := "KUBECONFIG env var"
14 content := "/use/ksctl"
15
16 b := box.NewBox().Padding(4, 2).
17 Style(box.Double).
18 Color("#8B75FF").
19 TitlePosition(box.Top).
20 TitleColor("#00ffb2").
21 ContentColor("#12c78f")
22
23 fmt.Println(b.MustRender(title, content))
24}

Callers

nothing calls this directly

Calls 7

ContentColorMethod · 0.80
TitleColorMethod · 0.80
TitlePositionMethod · 0.80
ColorMethod · 0.80
StyleMethod · 0.80
PaddingMethod · 0.80
MustRenderMethod · 0.80

Tested by

no test coverage detected