s/initFlags/init/g

This commit is contained in:
Preetha Appan 2017-10-11 16:37:15 -05:00 committed by Frank Schröder
parent 7689e1e5cd
commit 55a1724b9e
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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