Documentation ¶
Index ¶
- func Exec(log *log.Logger, cmdName string, arguments ...string) (string, error)
- func ExecDetached(log *log.Logger, cmdName string, arguments ...string) error
- func ExecPrintError(log *log.Logger, cmdName string, arguments ...string) error
- func ExecSilent(log *log.Logger, cmdName string, arguments ...string) (string, error)
- func ExecuteInDir(folder string, action func() error) error
- func IsExit(err error) bool
- func ParseVCSURL(url string) (*vcsurl.RepoInfo, error)
- type Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecDetached ¶
Execute a given command without waiting for its result.
func ExecPrintError ¶
Execute a given command, printing stderr in case of an error
func ExecSilent ¶
Execute a given command without announcing the command. Return stderr on error, stdout on no error
func ExecuteInDir ¶
ExecuteInDir changes the current directory to the given folder, executes the given action and then changes the current directory back to the original.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func PrepareCommand ¶
func (*Command) RunPrintError ¶
Execute a given command, printing stderr in case of an error
Click to show internal directories.
Click to hide internal directories.