Skip to content

Commit d39941b

Browse files
Add most remaining shortflags
Didn't do Put.TTR flag since it'd conflict with Tube. Signed-off-by: Rafael Espinoza <[email protected]>
1 parent be8b7c2 commit d39941b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cli/delete.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
type DeleteCommand struct {
88
Tube string `short:"t" long:"tube" description:"tube to be delete." required:"true"`
99
State string `short:"s" long:"state" description:"peek from 'buried', 'ready' or 'delayed' queues." default:"buried"`
10-
Print bool `short:"" long:"print" description:"prints the jobs after delete it."`
11-
Empty bool `short:"" long:"empty" description:"delete all jobs with the given status in the given tube."`
10+
Print bool `short:"p" long:"print" description:"prints the jobs after delete it."`
11+
Empty bool `short:"e" long:"empty" description:"delete all jobs with the given status in the given tube."`
1212
Command
1313
}
1414

cli/put.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
type PutCommand struct {
1111
Tube string `short:"t" long:"tube" description:"tube to be tailed." required:"true"`
1212
Body string `short:"b" long:"body" description:"plain text data for the job." required:"true"`
13-
Priority uint32 `short:"" long:"priority" description:"priority for the job." default:"1024"`
14-
Delay time.Duration `short:"" long:"delay" description:"delay for the job." default:"0"`
13+
Priority uint32 `short:"p" long:"priority" description:"priority for the job." default:"1024"`
14+
Delay time.Duration `short:"d" long:"delay" description:"delay for the job." default:"0"`
1515
TTR time.Duration `short:"" long:"ttr" description:"TTR for the job." default:"60"`
1616

1717
Command

cli/tail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var TooManyErrorsError = errors.New("Too many errors")
1313

1414
type TailCommand struct {
1515
Tube string `short:"t" long:"tube" description:"tube to be tailed." required:"true"`
16-
Action string `short:"" long:"action" description:"action to perform after reserver the job. (release, bury, delete)" default:"release"`
16+
Action string `short:"a" long:"action" description:"action to perform after reserver the job. (release, bury, delete)" default:"release"`
1717

1818
Command
1919
}

0 commit comments

Comments
 (0)