2022-02-09 14:01:19 +00:00
|
|
|
package admin
|
|
|
|
|
|
|
|
import (
|
|
|
|
_ "embed"
|
|
|
|
|
2022-03-14 06:55:09 +00:00
|
|
|
"github.com/spf13/cobra"
|
2022-04-26 23:01:45 +00:00
|
|
|
"github.com/zitadel/logging"
|
2022-03-14 06:55:09 +00:00
|
|
|
|
2022-04-26 23:01:45 +00:00
|
|
|
"github.com/zitadel/zitadel/cmd/admin/initialise"
|
|
|
|
"github.com/zitadel/zitadel/cmd/admin/key"
|
|
|
|
"github.com/zitadel/zitadel/cmd/admin/setup"
|
|
|
|
"github.com/zitadel/zitadel/cmd/admin/start"
|
2022-02-09 14:01:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func New() *cobra.Command {
|
|
|
|
adminCMD := &cobra.Command{
|
|
|
|
Use: "admin",
|
|
|
|
Short: "The ZITADEL admin CLI let's you interact with your instance",
|
|
|
|
Long: `The ZITADEL admin CLI let's you interact with your instance`,
|
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
logging.New().Info("hello world")
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
adminCMD.AddCommand(
|
|
|
|
initialise.New(),
|
|
|
|
setup.New(),
|
|
|
|
start.New(),
|
2022-03-28 08:05:09 +00:00
|
|
|
start.NewStartFromInit(),
|
2022-03-14 06:55:09 +00:00
|
|
|
key.New(),
|
2022-02-09 14:01:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
return adminCMD
|
|
|
|
}
|