commands: move snapshot subcommands to subdirs

pull/3584/head
Frank Schroeder 7 years ago committed by Frank Schröder
parent 6bc5716336
commit 51799e5d23

@ -38,9 +38,9 @@ import (
"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"
"github.com/hashicorp/consul/command/snapshotinspect" snapinspectcmd "github.com/hashicorp/consul/command/snapshot/inspect"
"github.com/hashicorp/consul/command/snapshotrestore" snaprestorecmd "github.com/hashicorp/consul/command/snapshot/restore"
"github.com/hashicorp/consul/command/snapshotsave" snapsavecmd "github.com/hashicorp/consul/command/snapshot/save"
"github.com/hashicorp/consul/command/validate" "github.com/hashicorp/consul/command/validate"
versioncmd "github.com/hashicorp/consul/command/version" versioncmd "github.com/hashicorp/consul/command/version"
watchcmd "github.com/hashicorp/consul/command/watch" watchcmd "github.com/hashicorp/consul/command/watch"
@ -98,9 +98,9 @@ func init() {
"reload": func() (cli.Command, error) { return reload.New(ui), nil }, "reload": func() (cli.Command, error) { return reload.New(ui), nil },
"rtt": func() (cli.Command, error) { return rtt.New(ui), nil }, "rtt": func() (cli.Command, error) { return rtt.New(ui), nil },
"snapshot": func() (cli.Command, error) { return snapshot.New(), nil }, "snapshot": func() (cli.Command, error) { return snapshot.New(), nil },
"snapshot inspect": func() (cli.Command, error) { return snapshotinspect.New(ui), nil }, "snapshot inspect": func() (cli.Command, error) { return snapinspectcmd.New(ui), nil },
"snapshot restore": func() (cli.Command, error) { return snapshotrestore.New(ui), nil }, "snapshot restore": func() (cli.Command, error) { return snaprestorecmd.New(ui), nil },
"snapshot save": func() (cli.Command, error) { return snapshotsave.New(ui), nil }, "snapshot save": func() (cli.Command, error) { return snapsavecmd.New(ui), nil },
"validate": func() (cli.Command, error) { return validate.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 }, "version": func() (cli.Command, error) { return versioncmd.New(ui, version.GetHumanVersion()), nil },
"watch": func() (cli.Command, error) { return watchcmd.New(ui, makeShutdownCh()), nil }, "watch": func() (cli.Command, error) { return watchcmd.New(ui, makeShutdownCh()), nil },

@ -1,4 +1,4 @@
package snapshotinspect package inspect
import ( import (
"bytes" "bytes"

@ -1,4 +1,4 @@
package snapshotinspect package inspect
import ( import (
"io" "io"

@ -1,4 +1,4 @@
package snapshotrestore package restore
import ( import (
"flag" "flag"

@ -1,4 +1,4 @@
package snapshotrestore package restore
import ( import (
"io" "io"

@ -1,4 +1,4 @@
package snapshotsave package save
import ( import (
"flag" "flag"

@ -1,4 +1,4 @@
package snapshotsave package save
import ( import (
"os" "os"
Loading…
Cancel
Save