mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
* cicd: robot automated Change * feat: add api test Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * feat: add api test make file Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * feat: add openim e2e test Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * feat: add openim e2e test Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * fix: Fixed some unused scripts and some names Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * docs: optimize openim docs Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * feat: add prom address Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * feat: add openim info test * feat: add openim images config path Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * fix: fix tim file rename * fix: fix tim file rename * fix: fix tim file rename * fix: fix tim file rename * fix: add openim test e2e * feat: add openim test .keep Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * feat: add openim test .keep Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * feat: openim test Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * feat: openim test Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * feat: openim test Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> --------- Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> Co-authored-by: cubxxw <cubxxw@users.noreply.github.com>
22 lines
840 B
Go
22 lines
840 B
Go
package config
|
|
|
|
import "flag"
|
|
|
|
// Flags is the flag set that AddOptions adds to. Test authors should
|
|
// also use it instead of directly adding to the global command line.
|
|
var Flags = flag.NewFlagSet("", flag.ContinueOnError)
|
|
|
|
// CopyFlags ensures that all flags that are defined in the source flag
|
|
// set appear in the target flag set as if they had been defined there
|
|
// directly. From the flag package it inherits the behavior that there
|
|
// is a panic if the target already contains a flag from the source.
|
|
func CopyFlags(source *flag.FlagSet, target *flag.FlagSet) {
|
|
source.VisitAll(func(flag *flag.Flag) {
|
|
// We don't need to copy flag.DefValue. The original
|
|
// default (from, say, flag.String) was stored in
|
|
// the value and gets extracted by Var for the help
|
|
// message.
|
|
target.Var(flag.Value, flag.Name, flag.Usage)
|
|
})
|
|
}
|