Documentation ¶
Index ¶
- Constants
- func Add() error
- func AddProfile(newProfile globals.Profile) error
- func Clone(url string, dest string, profile globals.Profile) error
- func Commit(message string) error
- func Config(dir string, profile globals.Profile) error
- func ExitWithError(err error)
- func GetProfilePath() (string, error)
- func ParseGitDestDir(url string) string
- func PromptInput(label string, validate promptui.ValidateFunc) (string, error)
- func PromptNewApiProfile() (globals.ApiProfile, error)
- func PromptNewProfile() (globals.Profile, error)
- func PromptSelectProfile(prompt string) (globals.Profile, int, error)
- func PromptYesNo(prompt string) (bool, error)
- func Push() error
- func ReadInput(prompt string, reader *bufio.Reader) string
- func ReadProfiles() ([]globals.Profile, error)
- func RemoveProfile(profiles []globals.Profile, index int) error
- func SelectItem(label string, items []string) (int, string, error)
- func ValidateEmail(input string) error
- func ValidateEmpty(input string) error
- func ValidateGitUrl(input string) error
- type Runner
Constants ¶
View Source
const ( AppName = "ggt-cli" ProfilesDirMode = os.FileMode(0700) ProfilesFileMode = os.FileMode(0600) )
View Source
const (
GitUrlRegex = "((git|ssh|http(s)?)|(git@[\\w\\.]+))(:(\\/\\/)?)([\\w\\.@\\:/\\-~]+)(\\.git)?(\\/)?"
)
Variables ¶
This section is empty.
Functions ¶
func AddProfile ¶
func ExitWithError ¶
func ExitWithError(err error)
func GetProfilePath ¶
func ParseGitDestDir ¶
func PromptInput ¶
func PromptInput(label string, validate promptui.ValidateFunc) (string, error)
func PromptNewApiProfile ¶
func PromptNewApiProfile() (globals.ApiProfile, error)
func PromptNewProfile ¶
func PromptYesNo ¶
func ReadProfiles ¶
func ValidateEmail ¶
func ValidateEmpty ¶
func ValidateGitUrl ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.