mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
4d30d3a7e1
* fix(cli): typo in clis * chore: fix typos in guides and readme * markdown lint * readme typos * markdown lint * typos in security.md * login de * login en * console de * console en * Apply suggestions from code review E-Mail instead of Email Co-authored-by: Florian Forster <florian@caos.ch> Co-authored-by: Florian Forster <florian@caos.ch>
35 lines
736 B
Go
35 lines
736 B
Go
package admin
|
|
|
|
import (
|
|
_ "embed"
|
|
"errors"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"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"
|
|
)
|
|
|
|
func New() *cobra.Command {
|
|
adminCMD := &cobra.Command{
|
|
Use: "admin",
|
|
Short: "The ZITADEL admin CLI lets you interact with your instance",
|
|
Long: `The ZITADEL admin CLI lets you interact with your instance`,
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return errors.New("no additional command provided")
|
|
},
|
|
}
|
|
|
|
adminCMD.AddCommand(
|
|
initialise.New(),
|
|
setup.New(),
|
|
start.New(),
|
|
start.NewStartFromInit(),
|
|
key.New(),
|
|
)
|
|
|
|
return adminCMD
|
|
}
|