Browse Source

s/initFlags/init/g

pull/3584/head
Preetha Appan 7 years ago committed by Frank Schröder
parent
commit
55a1724b9e
  1. 4
      command/catlistsvc/catalog_list_services.go
  2. 4
      command/event/event.go
  3. 4
      command/exec/exec.go

4
command/catlistsvc/catalog_list_services.go

@ -15,7 +15,7 @@ import (
func New(ui cli.Ui) *cmd { func New(ui cli.Ui) *cmd {
c := &cmd{UI: ui} c := &cmd{UI: ui}
c.initFlags() c.init()
return c return c
} }
@ -31,7 +31,7 @@ type cmd struct {
tags bool tags bool
} }
func (c *cmd) initFlags() { func (c *cmd) init() {
c.flags = flag.NewFlagSet("", flag.ContinueOnError) c.flags = flag.NewFlagSet("", flag.ContinueOnError)
c.flags.StringVar(&c.node, "node", "", c.flags.StringVar(&c.node, "node", "",
"Node `id or name` for which to list services.") "Node `id or name` for which to list services.")

4
command/event/event.go

@ -12,7 +12,7 @@ import (
func New(ui cli.Ui) *cmd { func New(ui cli.Ui) *cmd {
c := &cmd{UI: ui} c := &cmd{UI: ui}
c.initFlags() c.init()
return c return c
} }
@ -27,7 +27,7 @@ type cmd struct {
usage string usage string
} }
func (c *cmd) initFlags() { func (c *cmd) init() {
c.flags = flag.NewFlagSet("", flag.ContinueOnError) c.flags = flag.NewFlagSet("", flag.ContinueOnError)
c.flags.StringVar(&c.name, "name", "", c.flags.StringVar(&c.name, "name", "",
"Name of the event.") "Name of the event.")

4
command/exec/exec.go

@ -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.")

Loading…
Cancel
Save