mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
cobra
This commit is contained in:
parent
4c4a8341c4
commit
1043142970
@ -51,7 +51,7 @@ func (r *RootCmd) getPortFlag(cmd *cobra.Command) int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *RootCmd) AddPrometheusPortFlag() {
|
func (r *RootCmd) AddPrometheusPortFlag() {
|
||||||
r.Command.Flags().StringP(constant.FlagPrometheusPort, "pp", "", "server prometheus listen port")
|
r.Command.Flags().String(constant.FlagPrometheusPort, "", "server prometheus listen port")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RootCmd) getPrometheusPortFlag(cmd *cobra.Command) int {
|
func (r *RootCmd) getPrometheusPortFlag(cmd *cobra.Command) int {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user