mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 20:03:38 +08:00
refactor: cmd update.
This commit is contained in:
parent
8e09f3ca04
commit
8d25cedc0e
@ -66,8 +66,9 @@ func WithConfigMap(configMap map[string]any) func(*CmdOpts) {
|
|||||||
func NewRootCmd(processName string, opts ...func(*CmdOpts)) *RootCmd {
|
func NewRootCmd(processName string, opts ...func(*CmdOpts)) *RootCmd {
|
||||||
rootCmd := &RootCmd{processName: processName}
|
rootCmd := &RootCmd{processName: processName}
|
||||||
cmd := cobra.Command{
|
cmd := cobra.Command{
|
||||||
Use: "Start openIM application",
|
Use: "Start openIM application",
|
||||||
Long: fmt.Sprintf(`Start %s `, processName),
|
Short: fmt.Sprintf(`Start %s `, processName),
|
||||||
|
Long: fmt.Sprintf(`Start %s `, processName),
|
||||||
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||||
return rootCmd.persistentPreRun(cmd, opts...)
|
return rootCmd.persistentPreRun(cmd, opts...)
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user