mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-30 15:59:55 -05:00
add config-file flag to ocis, propagate log config to graph & graph-explorer
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user