add config-file flag to ocis, propagate log config to graph & graph-explorer

This commit is contained in:
A.Unger
2021-03-17 10:58:28 +01:00
parent 732db59bcf
commit 41f4a633f5
5 changed files with 13 additions and 14 deletions
-8
View File
@@ -46,14 +46,6 @@ func Execute() error {
)
}
//r := registry.GetRegistry()
//opts := micro.Options{
// Registry: r,
//}
//runtime.AddMicroPlatform(app, opts)
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
+6
View File
@@ -8,6 +8,12 @@ import (
// RootWithConfig applies cfg to the root flagset
func RootWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "config-file",
Usage: "Load config file from a non standard location.",
EnvVars: []string{"OCIS_CONFIG_FILE"},
Destination: &cfg.File,
},
&cli.StringFlag{
Name: "ocis-log-level",
Value: "info",