summaryrefslogtreecommitdiff
path: root/cmd/lspipeline
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-12-16 10:39:51 +0000
committerNick White <git@njw.name>2019-12-16 10:39:51 +0000
commit70eecf79704452d600f3edca9dec2e9726dcfe6d (patch)
tree3b22bdd1b5050a21a89cf3220759c8d8fd019ef9 /cmd/lspipeline
parent27ab86b6ae5d745076b046b358aeebf2aa70d611 (diff)
Fix usage message for getpipelinebook, and trim final slashes in lspipeline output
Diffstat (limited to 'cmd/lspipeline')
-rw-r--r--cmd/lspipeline/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/lspipeline/main.go b/cmd/lspipeline/main.go
index 0128c60..56c8069 100644
--- a/cmd/lspipeline/main.go
+++ b/cmd/lspipeline/main.go
@@ -6,6 +6,7 @@ import (
"log"
"os/exec"
"sort"
+ "strings"
"rescribe.xyz/bookpipeline"
)
@@ -128,11 +129,11 @@ func getBookStatus(conn LsPipeliner) (inprogress []string, done []string, err er
}
sort.Sort(donemeta)
for _, i := range donemeta {
- done = append(done, i.Name)
+ done = append(done, strings.TrimSuffix(i.Name, "/"))
}
sort.Sort(inprogressmeta)
for _, i := range inprogressmeta {
- inprogress = append(inprogress, i.Name)
+ inprogress = append(inprogress, strings.TrimSuffix(i.Name, "/"))
}
return