mirror of
https://github.com/hanzozt/zt.git
synced 2026-11-03 05:01:58 +00:00
25 lines
571 B
Go
25 lines
571 B
Go
package fabric
|
|
|
|
import (
|
|
"github.com/openziti/ziti/ziti/cmd/common"
|
|
cmdhelper "github.com/openziti/ziti/ziti/cmd/helpers"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func newDbCmd(p common.OptionsProvider) *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(p))
|
|
cmd.AddCommand(newDbCheckIntegrityCmd(p))
|
|
cmd.AddCommand(newDbCheckIntegrityStatusCmd(p))
|
|
|
|
return cmd
|
|
}
|