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 ¶ added in v0.2.0
func AlertWarning ¶ added in v0.2.0
func BlockQuote ¶ added in v0.2.0
BlockQuote adds two space characters to the start of every line in the text
func Indent ¶ added in v0.2.0
Indent adds two space characters to the start of every line in the text
func LightGrayText ¶ added in v0.2.0
func MagentaText ¶
func ObscureText ¶ added in v0.2.0
func OrderedList ¶ added in v0.2.0
func PrefixLines ¶ added in v0.2.0
PrefixLines adds a string to the start of every line in the text
func PromptConfirmProjectName ¶ added in v0.2.44
func PromptEnvVars ¶ added in v0.1.35
func PromptEnvVars(envVars []*entity.StarterEnvVar) (map[string]string, error)
func PromptEnvironments ¶
func PromptEnvironments(environments []*entity.Environment) (*entity.Environment, error)
func PromptGitHubScopes ¶ added in v0.1.35
PromptGitHubScopes prompts the user to select one of the provides scopes
func PromptIsRepoPrivate ¶ added in v0.1.35
func PromptPlugins ¶
func PromptProjectName ¶ added in v0.1.35
func PromptServices ¶ added in v0.3.0
func PromptStarterTemplates ¶ added in v0.1.35
PromptStarterTemplates prompts the user to select one of the provided starter templates
func PromptText ¶
func PromptYesNo ¶ added in v0.2.0
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 ¶ added in v1.7.0
func SupportsANSICodes() bool
func UnorderedList ¶ added in v0.2.0
func VerboseInfo ¶ added in v1.2.2
func YellowText ¶
Types ¶
type SpinnerCfg ¶
type TrainSpinner ¶
type TrainSpinner []string
var (
TrainEmojis TrainSpinner = []string{"🚝", "🚅", "🚄", "🚇", "🚞", "🚈", "🚉", "🚂", "🚃", "🚊", "🚋"}
)
Click to show internal directories.
Click to hide internal directories.