Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewUserFlow = []*survey.Question{
{
Name: "register",
Prompt: &survey.Confirm{
Message: "metadata.json was not found in the current directory, do you want to register and create one now?",
},
Validate: survey.Required,
},
}
NewUserFlow is the TUI flow used when lighthouse metadata is missing
Functions ¶
func AlreadyRegisteredFlow ¶
AlreadyRegisteredFlow is run when metadata.json is present
func GenerateASCIIArt ¶
func GenerateASCIIArt()
GenerateASCIIArt prints the lighthouse onto the screen
func StartNewUserFlow ¶
func StartNewUserFlow()
StartNewUserFlow starts the TUI flow and registers the user
Types ¶
type NewUserAnswers ¶
type NewUserAnswers struct {
Register bool
}
NewUserAnswers contains the answers from NewUserFlow
Click to show internal directories.
Click to hide internal directories.