summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/getpipelinebook/main.go2
-rw-r--r--cmd/lspipeline/main.go5
2 files changed, 4 insertions, 3 deletions
diff --git a/cmd/getpipelinebook/main.go b/cmd/getpipelinebook/main.go
index fc6170c..be80b41 100644
--- a/cmd/getpipelinebook/main.go
+++ b/cmd/getpipelinebook/main.go
@@ -11,7 +11,7 @@ import (
"rescribe.xyz/bookpipeline"
)
-const usage = `Usage: getpipelinebook [-a] [-c] [-v] bookname
+const usage = `Usage: getpipelinebook [-a] [-v] bookname
Downloads the pipeline results for a book.
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