mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-05 01:38:54 +08:00
script
This commit is contained in:
parent
f693b6f335
commit
48722ebe36
@ -3,6 +3,7 @@ package cmd
|
|||||||
import (
|
import (
|
||||||
"OpenIM/internal/startrpc"
|
"OpenIM/internal/startrpc"
|
||||||
"OpenIM/pkg/discoveryregistry"
|
"OpenIM/pkg/discoveryregistry"
|
||||||
|
"github.com/spf13/cobra"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -15,11 +16,11 @@ func NewAuthCmd() *AuthCmd {
|
|||||||
return authCmd
|
return authCmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *AuthCmd) Execute() error {
|
func (a *AuthCmd) Exec() error {
|
||||||
//a.Command.Run = func(cmd *cobra.Command, args []string) {
|
a.Command.Run = func(cmd *cobra.Command, args []string) {
|
||||||
// a.port = a.getPortFlag(cmd)
|
a.port = a.getPortFlag(cmd)
|
||||||
// a.prometheusPort = a.getPrometheusPortFlag(cmd)
|
a.prometheusPort = a.getPrometheusPortFlag(cmd)
|
||||||
//}
|
}
|
||||||
return a.Execute()
|
return a.Execute()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user