showInfoBox prints a box with some text in it, and the title "Info"
(infoText string)
| 126 | |
| 127 | // showInfoBox prints a box with some text in it, and the title "Info" |
| 128 | func 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 |
no test coverage detected