Documentation ¶
Index ¶
- Constants
- func BlueText(payload string) aurora.Value
- func Bold(text string) string
- func Color(w io.Writer) aurora.Aurora
- func GrayText(payload string) aurora.Value
- func GreenText(payload string) aurora.Value
- func MagentaText(payload string) aurora.Value
- func PromptEnvironments(environments []*entity.Environment) (*entity.Environment, error)
- func PromptPlugins(plugins []string) (string, error)
- func PromptProjects(projects []*entity.Project) (*entity.Project, error)
- func PromptText(text string) (string, error)
- func RedText(payload string) aurora.Value
- func StartSpinner(cfg *SpinnerCfg)
- func StopSpinner(msg string)
- func YellowText(payload string) aurora.Value
- type Prompt
- type Selection
- type SpinnerCfg
- type TrainSpinner
Constants ¶
View Source
const ( InitPrompt Prompt = "What would you like to do?" InitNew Selection = "Create new Project" InitFromAccount Selection = "Connect to existing project" InitFromID Selection = "Enter existing project id" )
Variables ¶
This section is empty.
Functions ¶
func MagentaText ¶
func PromptEnvironments ¶
func PromptEnvironments(environments []*entity.Environment) (*entity.Environment, error)
func PromptPlugins ¶
func PromptText ¶
func StartSpinner ¶
func StartSpinner(cfg *SpinnerCfg)
func StopSpinner ¶
func StopSpinner(msg string)
func YellowText ¶
Types ¶
type TrainSpinner ¶
type TrainSpinner []string
var ( TrainRight TrainSpinner = []string{"🚅", "🚅🚋", "🚅🚋🚋", "🚅🚋🚋🚋", "🚅🚋🚋🚋🚋", "🚅🚋🚋🚋🚋🚋", "🚅🚋🚋🚋🚋🚋🚋", "🚅🚋🚋🚋🚋🚋🚋🚋", "🚅🚋🚋🚋🚋🚋🚋🚋🚋"} TrainLeft TrainSpinner = []string{" 🚅", " 🚅🚋", " 🚅🚋🚋", " 🚅🚋🚋🚋", " 🚅🚋🚋🚋🚋", " 🚅🚋🚋🚋🚋🚋", " 🚅🚋🚋🚋🚋🚋🚋", " 🚅🚋🚋🚋🚋🚋🚋🚋", "🚅🚋🚋🚋🚋🚋🚋🚋🚋"} TrainEmojis TrainSpinner = []string{"🚝", "🚅", "🚄", "🚇", "🚞", "🚈", "🚉", "🚂", "🚃", "🚊", "🚋"} )
Click to show internal directories.
Click to hide internal directories.