mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 18:36:19 +08:00
cobra
This commit is contained in:
parent
f8ad35a6f7
commit
ff6a503f53
@ -12,6 +12,6 @@ func NewApiCmd() *ApiCmd {
|
||||
|
||||
func (a *ApiCmd) AddApi(f func(port int) error) {
|
||||
a.Command.RunE = func(cmd *cobra.Command, args []string) error {
|
||||
return f(a.GetPortFlag())
|
||||
return f(a.getPortFlag(cmd))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user