MCPcopy Create free account
hub / github.com/commitdev/zero / showInfoBox

Function showInfoBox

internal/init/prompts.go:128–134  ·  view source on GitHub ↗

showInfoBox prints a box with some text in it, and the title "Info"

(infoText string)

Source from the content-addressed store, hash-verified

126
127// showInfoBox prints a box with some text in it, and the title "Info"
128func showInfoBox(infoText string) {
129 box := tm.NewBox(100|tm.PCT, 4, 0)
130 fmt.Fprint(box, infoText)
131 tm.Print(tm.MoveTo(box.String(), 1, 1))
132 tm.MoveCursor(4, 1)
133 tm.Printf("Info")
134}
135
136// RunPrompt obtains the value of PromptHandler depending on the parameter's definition
137// for the project config, there are multiple ways of obtaining the value

Callers 2

chooseStackFunction · 0.85
RunPromptMethod · 0.85

Calls 1

PrintMethod · 0.80

Tested by

no test coverage detected