diff options
author | Nick White <git@njw.name> | 2019-12-16 10:39:51 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-12-16 10:39:51 +0000 |
commit | 70eecf79704452d600f3edca9dec2e9726dcfe6d (patch) | |
tree | 3b22bdd1b5050a21a89cf3220759c8d8fd019ef9 | |
parent | 27ab86b6ae5d745076b046b358aeebf2aa70d611 (diff) |
Fix usage message for getpipelinebook, and trim final slashes in lspipeline output
-rw-r--r-- | cmd/getpipelinebook/main.go | 2 | ||||
-rw-r--r-- | cmd/lspipeline/main.go | 5 |
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 |