grafana/pkg/cmd/grafana-cli
gotjosh 7d68d6ede2
grafana-cli: Fix receiving flags via command line (#17617)
`grafana-cli` uses the third-party library to define the flags and not
the standard library. Using `flag.Parse` conflicts with the defined
flags from our third-party library.

In the case where `flag.Parse` is used, the CLI assumes that definitions
provided are not needed and will not define them; producing errors of
the kind `flag provided but not defined --example-flag`.

Using the context to read any arguments (including flags) is the
recommended approach by the third-party library.
2019-06-18 10:25:37 +01:00
..
commands grafana-cli: Fix receiving flags via command line (#17617) 2019-06-18 10:25:37 +01:00
logger tech(cli): rename log to logger to separate from server logger 2016-06-03 12:22:30 +02:00
models Revert "removes dependencies install for plugins" 2018-02-16 09:49:29 +01:00
services Codestyle: Fix govet issues (#17178) 2019-06-04 22:00:05 +02:00
utils CLI: Add command to migrate all datasources to use encrypted password fields (#17118) 2019-05-27 10:47:21 +02:00
main.go grafana-cli: Fix receiving flags via command line (#17617) 2019-06-18 10:25:37 +01:00