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(p *printer.Printer, invites []*adminv1.UserInvite) error
- func PrintMembers(p *printer.Printer, members []*adminv1.Member) error
- func PrintUsers(p *printer.Printer, users []*adminv1.User) error
- 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 RepoForProjectPath(path string) (drivers.RepoStore, 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)
- type Helper
- 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(p *printer.Printer, invites []*adminv1.UserInvite) error
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 RepoForProjectPath ¶ added in v0.36.0
RepoForProjectPath creates an ad-hoc drivers.RepoStore for a local project file path
func SelectPromptIfEmpty ¶
func SetFlagsByInputPrompts ¶ added in v0.26.0
func StringPromptIfEmpty ¶
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.