Documentation ¶
Index ¶
- Constants
- func Confirm(msg string) (string, error)
- func CouponCode() (string, error)
- func CreditCard() (*stripe.Token, error)
- func Email(defaultValue string) (string, error)
- func EmailVerificationCode(defaultValue string) (string, error)
- func FullName(defaultValue string) (string, error)
- func HandleSelectError(err error, generic string) error
- func NewSpinner(suffix string) *spinner.Spinner
- func Password() (string, error)
- func ProjectDescription(defaultValue string, autoSelect bool) (string, error)
- func ProjectTitle(defaultValue string, autoSelect bool) (string, error)
- func ResourceName(defaultValue string, autoSelect bool) (string, error)
- func ResourceTitle(defaultValue string, autoSelect bool) (string, error)
- func SelectAPIToken(tokens []*iModels.APIToken) (*iModels.APIToken, error)
- func SelectContext(teams []*iModels.Team, label string, userTuple *[]string) (int, string, error)
- func SelectPlan(plans []*cModels.Plan, label string, filterLabelTop bool) (int, string, error)
- func SelectProduct(products []*cModels.Product, label string) (int, string, error)
- func SelectProject(projects []*mModels.Project, label string, emptyOption bool) (int, string, error)
- func SelectProvider(providers []*cModels.Provider) (*cModels.Provider, error)
- func SelectRegion(regions []*cModels.Region) (int, string, error)
- func SelectResource(resources []*mModels.Resource, projects []*mModels.Project, label string) (int, string, error)
- func SelectRole() (string, error)
- func SelectTeam(teams []*iModels.Team, label string, userTuple *[]string) (int, string, error)
- func SpinStart(suffix string)
- func SpinStop()
- func TeamTitle(defaultValue string, autoSelect bool) (string, error)
- func TokenDescription() (string, error)
Constants ¶
const NumberMask = '#'
NumberMask is the character used to mask number inputs
const PasswordMask = '●'
PasswordMask is the character used to mask password inputs
Variables ¶
This section is empty.
Functions ¶
func CouponCode ¶
CouponCode prompts the user to input an alphanumeric coupon code.
func CreditCard ¶
func CreditCard() (*stripe.Token, error)
CreditCard handles receiving and tokenizing payment information
func EmailVerificationCode ¶
EmailVerificationCode prompts the user to input a person's name
func HandleSelectError ¶
HandleSelectError returns a cli error if the error is not an EOF or Interrupt
func NewSpinner ¶
NewSpinner returns a customized spinner
func ProjectDescription ¶
ProjectDescription prompts the user to enter a project description
func ProjectTitle ¶ added in v0.8.1
ProjectTitle prompts the user to enter a new project title
func ResourceName ¶
ResourceName prompts the user to provide a label name
func ResourceTitle ¶ added in v0.8.1
ResourceTitle prompts the user to provide a resource title or to accept empty to let the system generate one.
func SelectAPIToken ¶ added in v0.8.1
SelectAPIToken prompts the user to choose from a list of tokens
func SelectContext ¶
SelectContext runs a SelectTeam for context purposes
func SelectPlan ¶
SelectPlan prompts the user to select a plan from the given list.
func SelectProduct ¶
SelectProduct prompts the user to select a product from the given list.
func SelectProject ¶
func SelectProject(projects []*mModels.Project, label string, emptyOption bool) (int, string, error)
SelectProject prompts the user to select a project from the given list.
func SelectProvider ¶
SelectProvider prompts the user to select a provider resource from the given list.
func SelectRegion ¶
SelectRegion prompts the user to select a region from the given list.
func SelectResource ¶
func SelectResource(resources []*mModels.Resource, projects []*mModels.Project, label string) (int, string, error)
SelectResource promps the user to select a provisioned resource from the given list
func SelectRole ¶ added in v0.8.0
SelectRole prompts the user to select a role from the given list.
func SelectTeam ¶
SelectTeam prompts the user to select a team from the given list. -1 as the first return value indicates no team has been selected
func SpinStart ¶
func SpinStart(suffix string)
SpinStart starts the spinning animation for the global spinner
func TokenDescription ¶ added in v0.8.1
TokenDescription prompts the user to enter a token description
Types ¶
This section is empty.