refactor: cmd update.

This commit is contained in:
Gordon 2024-04-12 17:00:29 +08:00
parent 8e09f3ca04
commit 8d25cedc0e

View File

@ -67,6 +67,7 @@ func NewRootCmd(processName string, opts ...func(*CmdOpts)) *RootCmd {
rootCmd := &RootCmd{processName: processName}
cmd := cobra.Command{
Use: "Start openIM application",
Short: fmt.Sprintf(`Start %s `, processName),
Long: fmt.Sprintf(`Start %s `, processName),
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
return rootCmd.persistentPreRun(cmd, opts...)