Started working on tool to drain SQS queue
This commit is contained in:
parent
6a17f5ba23
commit
4112cfc31f
3 changed files with 41 additions and 0 deletions
18
cmd/sqs-drain/main.go
Normal file
18
cmd/sqs-drain/main.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
|
||||
"github.com/lmika/gopkgs/cli"
|
||||
)
|
||||
|
||||
func main() {
|
||||
flagQueue := flag.String("q", "", "queue to drain")
|
||||
flag.Parse()
|
||||
|
||||
if *flagQueue == "" {
|
||||
cli.Fatalf("-q flag needs to be specified")
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue