Documentation ¶
Index ¶
- func AlertDanger(text string) string
- func AlertInfo(text string) string
- func AlertWarning(text string) string
- func BlockQuote(text string) string
- func BlueText(payload string) _aurora.Value
- func Bold(payload string) _aurora.Value
- func GrayText(payload string) _aurora.Value
- func GreenText(payload string) _aurora.Value
- func Heading(text string) string
- func Indent(text string) string
- func KeyValues(items map[string]string) string
- func LightGrayText(payload string) _aurora.Value
- func MagentaText(payload string) _aurora.Value
- func ObscureText(text string) string
- func OrderedList(items []string) string
- func Paragraph(text string) string
- func PrefixLines(text, prefix string) string
- func PromptConfirmProjectName() (string, error)
- func PromptEnvVars(envVars []*entity.StarterEnvVar) (map[string]string, error)
- func PromptEnvironments(environments []*entity.Environment) (*entity.Environment, error)
- func PromptGitHubScopes(scopes []string) (string, error)
- func PromptIsRepoPrivate() (bool, error)
- func PromptPlugins(plugins []string) (string, error)
- func PromptProjectName() (string, error)
- func PromptProjects(projects []*entity.Project) (*entity.Project, error)
- func PromptServices(services []*entity.Service) (*entity.Service, error)
- func PromptStarterTemplates(starters []*entity.Starter) (*entity.Starter, error)
- func PromptText(text string) (string, error)
- func PromptYesNo(msg string) (bool, error)
- func RedText(payload string) _aurora.Value
- func StartSpinner(cfg *SpinnerCfg)
- func StopSpinner(msg string)
- func SupportsANSICodes() bool
- func Truncate(text string, maxLength int) string
- func UnorderedList(items []string) string
- func VerboseInfo(isVerbose bool, text string) string
- func YellowText(payload string) _aurora.Value
- type Prompt
- type Selection
- type SpinnerCfg
- type TrainSpinner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlertDanger ¶
func AlertWarning ¶
func BlockQuote ¶
BlockQuote adds two space characters to the start of every line in the text
func LightGrayText ¶
func MagentaText ¶
func ObscureText ¶
func OrderedList ¶
func PrefixLines ¶
PrefixLines adds a string to the start of every line in the text
func PromptEnvVars ¶
func PromptEnvVars(envVars []*entity.StarterEnvVar) (map[string]string, error)
func PromptEnvironments ¶
func PromptEnvironments(environments []*entity.Environment) (*entity.Environment, error)
func PromptGitHubScopes ¶
PromptGitHubScopes prompts the user to select one of the provides scopes
func PromptIsRepoPrivate ¶
func PromptPlugins ¶
func PromptProjectName ¶
func PromptStarterTemplates ¶
PromptStarterTemplates prompts the user to select one of the provided starter templates
func PromptText ¶
func PromptYesNo ¶
PromptYesNo prompts the user to continue an action using the common (y/N) action
func StartSpinner ¶
func StartSpinner(cfg *SpinnerCfg)
func StopSpinner ¶
func StopSpinner(msg string)
func SupportsANSICodes ¶
func SupportsANSICodes() bool
func UnorderedList ¶
func VerboseInfo ¶
func YellowText ¶
Types ¶
type SpinnerCfg ¶
type TrainSpinner ¶
type TrainSpinner []string
var (
TrainEmojis TrainSpinner = []string{"🚝", "🚅", "🚄", "🚇", "🚞", "🚈", "🚉", "🚂", "🚃", "🚊", "🚋"}
)
Click to show internal directories.
Click to hide internal directories.