mirror of https://github.com/hashicorp/consul
commands: move operator subcommands to subdirs
parent
ce1ec000ca
commit
2bd8b070fb
|
@ -28,13 +28,13 @@ import (
|
||||||
"github.com/hashicorp/consul/command/maint"
|
"github.com/hashicorp/consul/command/maint"
|
||||||
"github.com/hashicorp/consul/command/members"
|
"github.com/hashicorp/consul/command/members"
|
||||||
"github.com/hashicorp/consul/command/monitor"
|
"github.com/hashicorp/consul/command/monitor"
|
||||||
"github.com/hashicorp/consul/command/oper"
|
"github.com/hashicorp/consul/command/operator"
|
||||||
"github.com/hashicorp/consul/command/operauto"
|
operauto "github.com/hashicorp/consul/command/operator/autopilot"
|
||||||
"github.com/hashicorp/consul/command/operautoget"
|
operautoget "github.com/hashicorp/consul/command/operator/autopilot/get"
|
||||||
"github.com/hashicorp/consul/command/operautoset"
|
operautoset "github.com/hashicorp/consul/command/operator/autopilot/set"
|
||||||
"github.com/hashicorp/consul/command/operraft"
|
operraft "github.com/hashicorp/consul/command/operator/raft"
|
||||||
"github.com/hashicorp/consul/command/operraftlist"
|
operraftlist "github.com/hashicorp/consul/command/operator/raft/listpeers"
|
||||||
"github.com/hashicorp/consul/command/operraftremove"
|
operraftremove "github.com/hashicorp/consul/command/operator/raft/removepeer"
|
||||||
"github.com/hashicorp/consul/command/reload"
|
"github.com/hashicorp/consul/command/reload"
|
||||||
"github.com/hashicorp/consul/command/rtt"
|
"github.com/hashicorp/consul/command/rtt"
|
||||||
"github.com/hashicorp/consul/command/snapshot"
|
"github.com/hashicorp/consul/command/snapshot"
|
||||||
|
@ -88,7 +88,7 @@ func init() {
|
||||||
"maint": func() (cli.Command, error) { return maint.New(ui), nil },
|
"maint": func() (cli.Command, error) { return maint.New(ui), nil },
|
||||||
"members": func() (cli.Command, error) { return members.New(ui), nil },
|
"members": func() (cli.Command, error) { return members.New(ui), nil },
|
||||||
"monitor": func() (cli.Command, error) { return monitor.New(ui, makeShutdownCh()), nil },
|
"monitor": func() (cli.Command, error) { return monitor.New(ui, makeShutdownCh()), nil },
|
||||||
"operator": func() (cli.Command, error) { return oper.New(), nil },
|
"operator": func() (cli.Command, error) { return operator.New(), nil },
|
||||||
"operator autopilot": func() (cli.Command, error) { return operauto.New(), nil },
|
"operator autopilot": func() (cli.Command, error) { return operauto.New(), nil },
|
||||||
"operator autopilot get-config": func() (cli.Command, error) { return operautoget.New(ui), nil },
|
"operator autopilot get-config": func() (cli.Command, error) { return operautoget.New(ui), nil },
|
||||||
"operator autopilot set-config": func() (cli.Command, error) { return operautoset.New(ui), nil },
|
"operator autopilot set-config": func() (cli.Command, error) { return operautoset.New(ui), nil },
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package operautoget
|
package get
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
|
@ -1,4 +1,4 @@
|
||||||
package operautoget
|
package get
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -1,4 +1,4 @@
|
||||||
package operauto
|
package autopilot
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mitchellh/cli"
|
"github.com/mitchellh/cli"
|
|
@ -1,4 +1,4 @@
|
||||||
package operauto
|
package autopilot
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -1,4 +1,4 @@
|
||||||
package operautoset
|
package set
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
|
@ -1,4 +1,4 @@
|
||||||
package operautoset
|
package set
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -1,4 +1,4 @@
|
||||||
package oper
|
package operator
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mitchellh/cli"
|
"github.com/mitchellh/cli"
|
|
@ -1,4 +1,4 @@
|
||||||
package oper
|
package operator
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -1,4 +1,4 @@
|
||||||
package operraftlist
|
package listpeers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
|
@ -1,4 +1,4 @@
|
||||||
package operraftlist
|
package listpeers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
|
@ -1,4 +1,4 @@
|
||||||
package operraft
|
package raft
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mitchellh/cli"
|
"github.com/mitchellh/cli"
|
|
@ -1,4 +1,4 @@
|
||||||
package operraft
|
package raft
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -1,4 +1,4 @@
|
||||||
package operraftremove
|
package removepeer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
|
@ -1,4 +1,4 @@
|
||||||
package operraftremove
|
package removepeer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
Loading…
Reference in New Issue