Documentation ¶
Index ¶
- Constants
- func Client(cfg *config.Config) (*client.Client, error)
- func ConfirmPrompt(msg, help string, def bool) bool
- func DefaultProjectName() string
- func FetchUserID(ctx context.Context, cfg *config.Config) (string, error)
- 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 PrintUsers(users []*adminv1.User)
- func PrintlnSuccess(str string)
- func PrintlnWarn(str string)
- func ProjectExists(ctx context.Context, c *client.Client, orgName, projectName string) (bool, error)
- func ProjectNamesByGithubURL(ctx context.Context, c *client.Client, org, githubURL string) ([]string, error)
- func ProjectNamesByOrg(ctx context.Context, c *client.Client, orgName string) ([]string, error)
- func SelectPrompt(msg string, options []string, def string) string
- func SelectPromptIfEmpty(input *string, msg string, options []string, def string)
- func SetFlagsByInputPrompts(cmd cobra.Command, flags ...string) error
- func Spinner(prefix string) *spinner.Spinner
- func StringPromptIfEmpty(input *string, msg string)
- func TablePrinter(v interface{})
- type PreRunCheck
Constants ¶
View Source
const (
TSFormatLayout = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func ConfirmPrompt ¶
func DefaultProjectName ¶
func DefaultProjectName() string
func FetchUserID ¶ added in v0.25.0
func InputPrompt ¶
func IsNameExistsErr ¶
func PrintInvites ¶
func PrintInvites(invites []*adminv1.UserInvite)
func PrintMembers ¶
func PrintUsers ¶ added in v0.26.0
func PrintlnSuccess ¶ added in v0.27.3
func PrintlnSuccess(str string)
func PrintlnWarn ¶ added in v0.27.3
func PrintlnWarn(str string)
func ProjectExists ¶
func ProjectNamesByGithubURL ¶
func ProjectNamesByGithubURL(ctx context.Context, c *client.Client, org, githubURL string) ([]string, error)
ProjectNames returns names of all the projects in org deployed from githubURL
func ProjectNamesByOrg ¶
func SelectPromptIfEmpty ¶
func SetFlagsByInputPrompts ¶ added in v0.26.0
func StringPromptIfEmpty ¶
func TablePrinter ¶
func TablePrinter(v interface{})
Types ¶
type PreRunCheck ¶
func CheckAuth ¶
func CheckAuth(cfg *config.Config) PreRunCheck
func CheckChain ¶
func CheckChain(chain ...PreRunCheck) PreRunCheck
func CheckOrganization ¶
func CheckOrganization(cfg *config.Config) PreRunCheck
Click to show internal directories.
Click to hide internal directories.