feat: export all cmd (#2746)

This commit is contained in:
BoYanZh
2022-12-18 19:53:39 +08:00
committed by GitHub
parent 6024e8d832
commit 0ae3fc608b
9 changed files with 32 additions and 33 deletions

View File

@ -9,8 +9,8 @@ import (
"github.com/spf13/cobra"
)
// passwordCmd represents the password command
var passwordCmd = &cobra.Command{
// PasswordCmd represents the password command
var PasswordCmd = &cobra.Command{
Use: "admin",
Aliases: []string{"password"},
Short: "Show admin user's info",
@ -26,7 +26,7 @@ var passwordCmd = &cobra.Command{
}
func init() {
rootCmd.AddCommand(passwordCmd)
RootCmd.AddCommand(PasswordCmd)
// Here you will define your flags and configuration settings.