diff options
Diffstat (limited to 'doDirty.go')
| -rw-r--r-- | doDirty.go | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -3,14 +3,23 @@ package main -func doDirty() { +import "go.wit.com/lib/protobuf/gitpb" + +func doDirty() (string, error) { found := me.forge.CheckDirty() if found.Len() == 0 { - return + return "nothing dirty", nil } + var footer string if argv.Verbose { - me.forge.PrintHumanTableDirty(found) + footer = me.forge.PrintHumanTableDirty(found) } else { - me.forge.PrintHumanTable(found) + footer = me.forge.PrintHumanTable(found) } + return footer, nil +} + +func getDirty() (*gitpb.Repos, string, error) { + found := me.forge.CheckDirty() + return found, "", nil } |
