From dc3f330570a45d5c7a22e1e23fc0bb3200a78afa Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 2 Oct 2019 12:45:03 +0100 Subject: Add -prebinarised flag to booktopipeline --- bookpipeline/cmd/booktopipeline/main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bookpipeline/cmd/booktopipeline/main.go b/bookpipeline/cmd/booktopipeline/main.go index 06bc648..296f2c2 100644 --- a/bookpipeline/cmd/booktopipeline/main.go +++ b/bookpipeline/cmd/booktopipeline/main.go @@ -37,6 +37,7 @@ func (f fileWalk) Walk(path string, info os.FileInfo, err error) error { func main() { verbose := flag.Bool("v", false, "Verbose") + wipeonly := flag.Bool("prebinarised", false, "Prebinarised: only preprocessing will be to wipe") flag.Parse() if flag.NArg() < 1 { @@ -68,7 +69,12 @@ func main() { sqssvc := sqs.New(sess) uploader := s3manager.NewUploader(sess) - qname := "rescribepreprocess" + var qname string + if *wipeonly { + qname = "rescribewipeonly" + } else { + qname = "rescribepreprocess" + } verboselog.Println("Getting Queue URL for", qname) result, err := sqssvc.GetQueueUrl(&sqs.GetQueueUrlInput{ QueueName: aws.String(qname), -- cgit v1.2.1-24-ge1ad