mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:47:32 +00:00
fix(cli): error if no sub command set on zitadel admin (#3565)
This commit is contained in:
@@ -2,9 +2,9 @@ package admin
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"errors"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/zitadel/logging"
|
||||
|
||||
"github.com/zitadel/zitadel/cmd/admin/initialise"
|
||||
"github.com/zitadel/zitadel/cmd/admin/key"
|
||||
@@ -17,8 +17,8 @@ func New() *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")
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return errors.New("no additional command provided")
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user