mirror of https://github.com/status-im/consul.git
s/initFlags/init/g
This commit is contained in:
parent
7689e1e5cd
commit
55a1724b9e
|
@ -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.")
|
||||||
|
|
|
@ -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.")
|
||||||
|
|
|
@ -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…
Reference in New Issue