commands: move catalog subcommands to subdirs
This commit is contained in:
parent
abd7c73627
commit
0a9478b1f1
|
@ -1,4 +1,4 @@
|
||||||
package cat
|
package catalog
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/hashicorp/consul/command/flags"
|
"github.com/hashicorp/consul/command/flags"
|
|
@ -1,4 +1,4 @@
|
||||||
package cat
|
package catalog
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -1,4 +1,4 @@
|
||||||
package catlistdc
|
package dc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
|
@ -1,4 +1,4 @@
|
||||||
package catlistdc
|
package dc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -1,4 +1,4 @@
|
||||||
package catlistnodes
|
package nodes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
|
@ -1,4 +1,4 @@
|
||||||
package catlistnodes
|
package nodes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -1,4 +1,4 @@
|
||||||
package catlistsvc
|
package services
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
|
@ -1,4 +1,4 @@
|
||||||
package catlistsvc
|
package services
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
|
@ -6,10 +6,10 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
agentcmd "github.com/hashicorp/consul/command/agent"
|
agentcmd "github.com/hashicorp/consul/command/agent"
|
||||||
"github.com/hashicorp/consul/command/cat"
|
"github.com/hashicorp/consul/command/catalog"
|
||||||
"github.com/hashicorp/consul/command/catlistdc"
|
catlistdccmd "github.com/hashicorp/consul/command/catalog/list/dc"
|
||||||
"github.com/hashicorp/consul/command/catlistnodes"
|
catlistnodescmd "github.com/hashicorp/consul/command/catalog/list/nodes"
|
||||||
"github.com/hashicorp/consul/command/catlistsvc"
|
catlistsvccmd "github.com/hashicorp/consul/command/catalog/list/services"
|
||||||
"github.com/hashicorp/consul/command/event"
|
"github.com/hashicorp/consul/command/event"
|
||||||
execmd "github.com/hashicorp/consul/command/exec"
|
execmd "github.com/hashicorp/consul/command/exec"
|
||||||
"github.com/hashicorp/consul/command/forceleave"
|
"github.com/hashicorp/consul/command/forceleave"
|
||||||
|
@ -66,10 +66,10 @@ func init() {
|
||||||
), nil
|
), nil
|
||||||
},
|
},
|
||||||
|
|
||||||
"catalog": func() (cli.Command, error) { return cat.New(), nil },
|
"catalog": func() (cli.Command, error) { return catalog.New(), nil },
|
||||||
"catalog datacenters": func() (cli.Command, error) { return catlistdc.New(ui), nil },
|
"catalog datacenters": func() (cli.Command, error) { return catlistdccmd.New(ui), nil },
|
||||||
"catalog nodes": func() (cli.Command, error) { return catlistnodes.New(ui), nil },
|
"catalog nodes": func() (cli.Command, error) { return catlistnodescmd.New(ui), nil },
|
||||||
"catalog services": func() (cli.Command, error) { return catlistsvc.New(ui), nil },
|
"catalog services": func() (cli.Command, error) { return catlistsvccmd.New(ui), nil },
|
||||||
"event": func() (cli.Command, error) { return event.New(ui), nil },
|
"event": func() (cli.Command, error) { return event.New(ui), nil },
|
||||||
"exec": func() (cli.Command, error) { return execmd.New(ui, makeShutdownCh()), nil },
|
"exec": func() (cli.Command, error) { return execmd.New(ui, makeShutdownCh()), nil },
|
||||||
"force-leave": func() (cli.Command, error) { return forceleave.New(ui), nil },
|
"force-leave": func() (cli.Command, error) { return forceleave.New(ui), nil },
|
||||||
|
|
Loading…
Reference in New Issue