Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitCmd = &cobra.Command{ Use: "init", Short: "初始化服务", Long: `初始化admin用户相关基础信息`, RunE: func(cmd *cobra.Command, args []string) error { if err := loadGlobalConfig(confType); err != nil { return err } if err := loadGlobalLogger(); err != nil { return err } if err := loadCache(); err != nil { return err } if err := pkg.InitService(); err != nil { return err } initer, err := NewInitialerFromCLI() if err != nil { return err } if err := initer.Run(); err != nil { return err } return nil }, }
InitCmd 初始化系统
View Source
var RootCmd = &cobra.Command{ Use: "keyauth", Short: "keyauth 分布式微服务认证与鉴权中心", Long: `keyauth ...`, RunE: func(cmd *cobra.Command, args []string) error { if vers { fmt.Println(version.FullVersion()) return nil } return errors.New("no flags find") }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.