Files
hanko/backend/cmd/jwt/root.go
2022-06-21 12:36:11 +02:00

21 lines
388 B
Go

package jwt
import (
"github.com/spf13/cobra"
"github.com/teamhanko/hanko/backend/config"
)
func NewJwtCmd() *cobra.Command {
return &cobra.Command{
Use: "jwt",
Short: "Tools for handling JSON Web Tokens",
Long: ``,
}
}
func RegisterCommands(parent *cobra.Command, cfg *config.Config) {
cmd := NewJwtCmd()
parent.AddCommand(cmd)
cmd.AddCommand(NewCreateCommand(cfg))
}