mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
32 lines
602 B
Go
32 lines
602 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"github.com/caos/zitadel/cmd/zitadelctl/cmds"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
Version = "unknown"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
rootCmd, rootValues := cmds.RootCommand(Version)
|
||
|
rootCmd.Version = fmt.Sprintf("%s\n", Version)
|
||
|
|
||
|
rootCmd.AddCommand(
|
||
|
cmds.StartOperator(rootValues),
|
||
|
cmds.TakeoffCommand(rootValues),
|
||
|
cmds.BackupListCommand(rootValues),
|
||
|
cmds.RestoreCommand(rootValues),
|
||
|
cmds.ReadSecretCommand(rootValues),
|
||
|
cmds.WriteSecretCommand(rootValues),
|
||
|
cmds.BackupCommand(rootValues),
|
||
|
cmds.StartDatabase(rootValues),
|
||
|
)
|
||
|
|
||
|
if err := rootCmd.Execute(); err != nil {
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|