Documentation ¶
Overview ¶
Package cli provides command line support for cmdstalk.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // The beanstalkd TCP address. Address string // All == true means all tubes will be watched. All bool // The shell command to execute for each job. Cmd string // PerTube is the number of workers servicing each tube concurrently. PerTube uint64 // The beanstalkd tubes to watch. Tubes TubeList }
Options contains runtime configuration, and is generally the result of parsing command line flags.
func ParseFlags ¶
ParseFlags parses and validates CLI flags into an Options struct.
Click to show internal directories.
Click to hide internal directories.