mirror of
https://github.com/DeBrosOfficial/network.git
synced 2026-01-30 22:43:04 +00:00
22 lines
440 B
Go
22 lines
440 B
Go
package steps
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
// Installing step shown during installation
|
|
type Installing struct {
|
|
Output []string
|
|
}
|
|
|
|
// View renders the installing step
|
|
func (i *Installing) View() string {
|
|
var s strings.Builder
|
|
s.WriteString(titleStyle.Render("Installing...") + "\n\n")
|
|
s.WriteString("Please wait while the node is being configured.\n\n")
|
|
for _, line := range i.Output {
|
|
s.WriteString(line + "\n")
|
|
}
|
|
return s.String()
|
|
}
|