fix(cli): error if no sub command set on zitadel admin (#3565)

This commit is contained in:
Silvan
2022-05-02 10:55:50 +02:00
committed by GitHub
parent dc7fdb240b
commit 8e7f73c6a6

View File

@@ -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")
}, },
} }