Documentation
¶
Index ¶
- func Confirm(text string) bool
- func ConfirmWithDefault(text string, defaultValue bool) bool
- func Log(m ...interface{})
- func LogSection(title string, m ...interface{})
- func Logf(f string, m ...interface{})
- func OAuth2GetToken(conf *oauth2.Config) (*oauth2.Token, error)
- func PrintChecking(message string)
- func PrintNotOK()
- func PrintOK()
- func Prompt(text string) string
- func PromptCached(text, key string) string
- func PromptSecret(text string) string
- func PromptSecretCached(text, key string) string
- func PromptWithChoice(name string, choices []string) (int, error)
- func PromptWithMultiChoice(name string, choices []string) ([]int, error)
- func ReflectionFill(o interface{}) error
- func ReflectionFillUsingObject(o interface{}, useExistingValues bool) error
- func Run(cmd string) ([]byte, error)
- func RunInDir(cmd, dir string) ([]byte, error)
- func RunInteractive(cmd string) error
- func RunInteractiveInDir(cmd, dir string) error
- func RunSecure(cmd string, secrets []string) ([]byte, error)
- func RunSecureInDir(cmd, dir string, secrets []string) ([]byte, error)
- func RunSecureInteractive(cmd string, secrets []string) error
- func RunSecureInteractiveInDir(cmd, dir string, secrets []string) error
- func RunWithInput(cmd string, input []byte) ([]byte, error)
- func SecureByteArray(input []byte, secrets []string) []byte
- func SecureStd(out *os.File, secrets []string) *os.File
- func SecureString(input string, secrets []string) string
- type Dependency
- type DependencyScript
- type DependencyScriptFn
- type DependencyScriptString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmWithDefault ¶
ConfirmWithDefault with default value
func OAuth2GetToken ¶
OAuth2GetToken Create local http server and use it to get access token from oauth authorization provider
func PromptWithChoice ¶
PromptWithChoice ...
func PromptWithMultiChoice ¶
PromptWithMultiChoice ...
func ReflectionFillUsingObject ¶
ReflectionFillUsingObject ...
func RunSecureInDir ¶
RunSecureInDir ...
func RunSecureInteractive ¶
RunSecureInteractive ...
func RunSecureInteractiveInDir ¶
RunSecureInteractiveInDir ...
func SecureByteArray ¶
SecureByteArray ...
Types ¶
type Dependency ¶
type Dependency struct { Name string CheckCmd string CheckCmdValidation string Dependencies []Dependency InstallScripts []DependencyScript UninstallScripts []DependencyScript }
Dependency struct
func DependencyFastlane ¶
func DependencyFastlane() Dependency
DependencyFastlane fastlane dependency
func DependencyFastlaneMatch ¶
func DependencyFastlaneMatch() Dependency
DependencyFastlaneMatch fastlane dependency
func DependencyHomebrew ¶
func DependencyHomebrew() Dependency
DependencyHomebrew dependency homebrew
func (*Dependency) Uninstall ¶
func (d *Dependency) Uninstall() error
Uninstall uninstalls the dependency
type DependencyScript ¶
type DependencyScript interface {
Run() error
}
DependencyScript interface - has to implement Run
type DependencyScriptFn ¶
type DependencyScriptFn struct {
Fn func() error
}
DependencyScriptFn interface - has to implement Run
func (DependencyScriptFn) Run ¶
func (script DependencyScriptFn) Run() error
Run runs the interface's fn
type DependencyScriptString ¶
type DependencyScriptString struct {
Fn string
}
DependencyScriptString interface
func (DependencyScriptString) Run ¶
func (script DependencyScriptString) Run() error
Run runs the dependency