summaryrefslogtreecommitdiff
path: root/doDirty.go
diff options
context:
space:
mode:
Diffstat (limited to 'doDirty.go')
-rw-r--r--doDirty.go17
1 files changed, 13 insertions, 4 deletions
diff --git a/doDirty.go b/doDirty.go
index c4efbb5..702302a 100644
--- a/doDirty.go
+++ b/doDirty.go
@@ -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
}