diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-06-12 01:19:00 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-06-12 01:19:00 +0200 |
commit | 18b938ff7aac1cef21de05ebd3671ab90b063c87 (patch) | |
tree | 7a491ec71d528a5cad86d462ad73a446b8d960f1 /skate/cmd/skate-reduce | |
parent | 9e30f6769db7dc1ac90a090ff1c7e0cffd13e6e7 (diff) | |
download | refcat-18b938ff7aac1cef21de05ebd3671ab90b063c87.tar.gz refcat-18b938ff7aac1cef21de05ebd3671ab90b063c87.zip |
add tests
Diffstat (limited to 'skate/cmd/skate-reduce')
-rw-r--r-- | skate/cmd/skate-reduce/main.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/skate/cmd/skate-reduce/main.go b/skate/cmd/skate-reduce/main.go index fbb4f57..a1aaebe 100644 --- a/skate/cmd/skate-reduce/main.go +++ b/skate/cmd/skate-reduce/main.go @@ -78,6 +78,7 @@ var ( logFile = flag.String("log", "", "log filename") // Possible inputs -- we could switch to a subcommand cli parser? + bref = flag.String("B", "", "path to bref file") refs = flag.String("F", "", "path to refs input") releases = flag.String("L", "", "path to release input") wiki = flag.String("W", "", "path to wiki input") @@ -181,6 +182,14 @@ func main() { if err := skate.ZippyExactReleases(o, f, r, bw); err != nil { log.Fatal(err) } + case "unmatched": + b, r, err := xio.OpenTwo(*bref, *refs) + if err != nil { + log.Fatal(err) + } + if err := skate.ZippyBrefAugment(b, r, bw); err != nil { + log.Fatal(err) + } default: log.Fatalf("invalid mode") } |