add verbose
This commit is contained in:
parent
8d5d7ca85c
commit
236a7cb5e8
|
@ -70,9 +70,17 @@ func rillRestore(repo *gitpb.Repo) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("go-mod-clean --smart START", repo.GetGoPath())
|
var err error
|
||||||
_, err := repo.RunQuiet([]string{"go-mod-clean", "--smart"})
|
if argv.Verbose {
|
||||||
log.Info("go-mod-clean --smart END", repo.GetGoPath())
|
log.Info("go-mod-clean --smart START", repo.GetGoPath())
|
||||||
|
result := repo.RunRealtime([]string{"go-mod-clean", "--smart"})
|
||||||
|
log.Info("go-mod-clean --smart END", repo.GetGoPath())
|
||||||
|
if result.Exit != 0 {
|
||||||
|
err = fmt.Errorf("repo %s failed %d", repo.GetGoPath(), result.Exit)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
_, err = repo.RunQuiet([]string{"go-mod-clean", "--smart"})
|
||||||
|
}
|
||||||
rillcount += 1
|
rillcount += 1
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Info("go-mod-clean --smart failed", repo.GetGoPath(), err)
|
log.Info("go-mod-clean --smart failed", repo.GetGoPath(), err)
|
||||||
|
|
Loading…
Reference in New Issue