|
|
@ -21,7 +21,7 @@ import ( |
|
|
|
|
|
|
|
|
|
|
|
func New(ui cli.Ui, shutdownCh <-chan struct{}) *cmd { |
|
|
|
func New(ui cli.Ui, shutdownCh <-chan struct{}) *cmd { |
|
|
|
c := &cmd{UI: ui, shutdownCh: shutdownCh} |
|
|
|
c := &cmd{UI: ui, shutdownCh: shutdownCh} |
|
|
|
c.initFlags() |
|
|
|
c.init() |
|
|
|
return c |
|
|
|
return c |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -38,7 +38,7 @@ type cmd struct { |
|
|
|
stopCh chan struct{} |
|
|
|
stopCh chan struct{} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (c *cmd) initFlags() { |
|
|
|
func (c *cmd) init() { |
|
|
|
c.flags = flag.NewFlagSet("", flag.ContinueOnError) |
|
|
|
c.flags = flag.NewFlagSet("", flag.ContinueOnError) |
|
|
|
c.flags.StringVar(&c.conf.node, "node", "", |
|
|
|
c.flags.StringVar(&c.conf.node, "node", "", |
|
|
|
"Regular expression to filter on node names.") |
|
|
|
"Regular expression to filter on node names.") |
|
|
|