mirror of
https://github.com/hanzozt/zt.git
synced 2026-11-02 11:38:22 +00:00
25 lines
568 B
Go
25 lines
568 B
Go
package edge
|
|
|
|
import (
|
|
cmdhelper "github.com/openziti/ziti/ziti/cmd/helpers"
|
|
"github.com/spf13/cobra"
|
|
"io"
|
|
)
|
|
|
|
func newDbCmd(out io.Writer, errOut io.Writer) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "db",
|
|
Short: "Database management operations for the Ziti Edge Controller",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
err := cmd.Help()
|
|
cmdhelper.CheckErr(err)
|
|
},
|
|
}
|
|
|
|
cmd.AddCommand(newDbSnapshotCmd(out, errOut))
|
|
cmd.AddCommand(newDbCheckIntegrityCmd(out, errOut))
|
|
cmd.AddCommand(newDbCheckIntegrityStatusCmd(out, errOut))
|
|
|
|
return cmd
|
|
}
|