add RunVerbose()
This commit is contained in:
parent
8c54c4a7d8
commit
f21c471032
5
shell.go
5
shell.go
|
@ -47,6 +47,11 @@ func (repo *Repo) RunRealtime(cmd []string) cmd.Status {
|
||||||
return shell.PathRunRealtime(repo.GetFullPath(), cmd)
|
return shell.PathRunRealtime(repo.GetFullPath(), cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (repo *Repo) RunRealtimeVerbose(cmd []string) cmd.Status {
|
||||||
|
log.Info("Run:", repo.GetFullPath(), cmd)
|
||||||
|
return shell.PathRunRealtime(repo.GetFullPath(), cmd)
|
||||||
|
}
|
||||||
|
|
||||||
// error if result.Error or if result.Exit != 0
|
// error if result.Error or if result.Exit != 0
|
||||||
func (repo *Repo) RunStrict(cmd []string) error {
|
func (repo *Repo) RunStrict(cmd []string) error {
|
||||||
return repo.StrictRun(cmd)
|
return repo.StrictRun(cmd)
|
||||||
|
|
Loading…
Reference in New Issue