Commit 826f8497 authored by Anatoly Stansler's avatar Anatoly Stansler 🎯

feat: add envs

parent 429c1929
Pipeline #130348349 passed with stages
in 5 minutes and 51 seconds
......@@ -128,16 +128,19 @@ func CommandList() []*cli.Command {
Aliases: []string{"f"},
},
&cli.IntFlag{
Name: "interval-seconds",
Usage: "interval of metric gathering and output",
Name: "interval-seconds",
Usage: "interval of metric gathering and output",
EnvVars: []string{"DBLAB_INTERVAL_SECONDS"},
},
&cli.IntFlag{
Name: "max-lock-duration-seconds",
Usage: "maximum allowed duration for locks",
Name: "max-lock-duration-seconds",
Usage: "maximum allowed duration for locks",
EnvVars: []string{"DBLAB_MAX_LOCK_DURATION_SECONDS"},
},
&cli.IntFlag{
Name: "max-duration-seconds",
Usage: "maximum allowed duration for operation",
Name: "max-duration-seconds",
Usage: "maximum allowed duration for operation",
EnvVars: []string{"DBLAB_MAX_DURATION_SECONDS"},
},
},
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment