mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 23:47:33 +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 (
|
import (
|
||||||
_ "embed"
|
_ "embed"
|
||||||
|
"errors"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/zitadel/logging"
|
|
||||||
|
|
||||||
"github.com/zitadel/zitadel/cmd/admin/initialise"
|
"github.com/zitadel/zitadel/cmd/admin/initialise"
|
||||||
"github.com/zitadel/zitadel/cmd/admin/key"
|
"github.com/zitadel/zitadel/cmd/admin/key"
|
||||||
@@ -17,8 +17,8 @@ func New() *cobra.Command {
|
|||||||
Use: "admin",
|
Use: "admin",
|
||||||
Short: "The ZITADEL admin CLI let's you interact with your instance",
|
Short: "The ZITADEL admin CLI let's you interact with your instance",
|
||||||
Long: `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) {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
logging.New().Info("hello world")
|
return errors.New("no additional command provided")
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user