commands: move snapshot subcommands to subdirs
This commit is contained in:
parent
0fb4ea3a30
commit
abd7c73627
|
@ -38,9 +38,9 @@ import (
|
|||
"github.com/hashicorp/consul/command/reload"
|
||||
"github.com/hashicorp/consul/command/rtt"
|
||||
"github.com/hashicorp/consul/command/snapshot"
|
||||
"github.com/hashicorp/consul/command/snapshotinspect"
|
||||
"github.com/hashicorp/consul/command/snapshotrestore"
|
||||
"github.com/hashicorp/consul/command/snapshotsave"
|
||||
snapinspectcmd "github.com/hashicorp/consul/command/snapshot/inspect"
|
||||
snaprestorecmd "github.com/hashicorp/consul/command/snapshot/restore"
|
||||
snapsavecmd "github.com/hashicorp/consul/command/snapshot/save"
|
||||
"github.com/hashicorp/consul/command/validate"
|
||||
versioncmd "github.com/hashicorp/consul/command/version"
|
||||
watchcmd "github.com/hashicorp/consul/command/watch"
|
||||
|
@ -98,9 +98,9 @@ func init() {
|
|||
"reload": func() (cli.Command, error) { return reload.New(ui), nil },
|
||||
"rtt": func() (cli.Command, error) { return rtt.New(ui), nil },
|
||||
"snapshot": func() (cli.Command, error) { return snapshot.New(), nil },
|
||||
"snapshot inspect": func() (cli.Command, error) { return snapshotinspect.New(ui), nil },
|
||||
"snapshot restore": func() (cli.Command, error) { return snapshotrestore.New(ui), nil },
|
||||
"snapshot save": func() (cli.Command, error) { return snapshotsave.New(ui), nil },
|
||||
"snapshot inspect": func() (cli.Command, error) { return snapinspectcmd.New(ui), nil },
|
||||
"snapshot restore": func() (cli.Command, error) { return snaprestorecmd.New(ui), nil },
|
||||
"snapshot save": func() (cli.Command, error) { return snapsavecmd.New(ui), nil },
|
||||
"validate": func() (cli.Command, error) { return validate.New(ui), nil },
|
||||
"version": func() (cli.Command, error) { return versioncmd.New(ui, version.GetHumanVersion()), nil },
|
||||
"watch": func() (cli.Command, error) { return watchcmd.New(ui, makeShutdownCh()), nil },
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package snapshotinspect
|
||||
package inspect
|
||||
|
||||
import (
|
||||
"bytes"
|
|
@ -1,4 +1,4 @@
|
|||
package snapshotinspect
|
||||
package inspect
|
||||
|
||||
import (
|
||||
"io"
|
|
@ -1,4 +1,4 @@
|
|||
package snapshotrestore
|
||||
package restore
|
||||
|
||||
import (
|
||||
"flag"
|
|
@ -1,4 +1,4 @@
|
|||
package snapshotrestore
|
||||
package restore
|
||||
|
||||
import (
|
||||
"io"
|
|
@ -1,4 +1,4 @@
|
|||
package snapshotsave
|
||||
package save
|
||||
|
||||
import (
|
||||
"flag"
|
|
@ -1,4 +1,4 @@
|
|||
package snapshotsave
|
||||
package save
|
||||
|
||||
import (
|
||||
"os"
|
Loading…
Reference in New Issue