Documentation
¶
Index ¶
- func Client(cfg *config.Config) (*client.Client, error)
- func ConfirmPrompt(msg, help string, def bool) bool
- func InputPrompt(msg, def string) (string, error)
- func IsNameExistsErr(err error) bool
- func OrgExists(ctx context.Context, c *client.Client, name string) (bool, error)
- func OrgNames(ctx context.Context, c *client.Client) ([]string, error)
- func PrintInvites(invites []*adminv1.UserInvite)
- func PrintMembers(members []*adminv1.Member)
- func ProjectExists(ctx context.Context, c *client.Client, orgName, projectName string) (bool, error)
- func ProjectNames(ctx context.Context, c *client.Client, org, githubURL string) ([]string, error)
- func SelectPrompt(msg string, options []string, def string) string
- func SelectPromptIfEmpty(input *string, msg string, options []string, def string)
- func Spinner(prefix string) *spinner.Spinner
- func StringPromptIfEmpty(input *string, msg string)
- func SuccessPrinter(str string)
- func TablePrinter(v interface{})
- func WarnPrinter(str string)
- type PreRunCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmPrompt ¶ added in v0.24.0
func InputPrompt ¶ added in v0.24.0
func IsNameExistsErr ¶ added in v0.24.1
func PrintInvites ¶ added in v0.24.0
func PrintInvites(invites []*adminv1.UserInvite)
func PrintMembers ¶ added in v0.24.0
func ProjectExists ¶ added in v0.24.0
func ProjectNames ¶ added in v0.24.1
ProjectNames returns names of all the projects in org deployed from githubURL
func SelectPrompt ¶ added in v0.24.0
func SelectPromptIfEmpty ¶ added in v0.24.1
func StringPromptIfEmpty ¶ added in v0.24.1
func SuccessPrinter ¶ added in v0.24.0
func SuccessPrinter(str string)
func TablePrinter ¶
func TablePrinter(v interface{})
func WarnPrinter ¶ added in v0.24.0
func WarnPrinter(str string)
Types ¶
type PreRunCheck ¶ added in v0.24.0
func CheckAuth ¶
func CheckAuth(cfg *config.Config) PreRunCheck
func CheckChain ¶ added in v0.24.0
func CheckChain(chain ...PreRunCheck) PreRunCheck
func CheckOrganization ¶ added in v0.24.0
func CheckOrganization(cfg *config.Config) PreRunCheck
Click to show internal directories.
Click to hide internal directories.