Json -> JSON

This commit is contained in:
Frank Denis 2019-12-11 14:08:48 +01:00
parent a7b7bdc11e
commit c1202457bf
2 changed files with 3 additions and 3 deletions

View File

@ -215,7 +215,7 @@ type ServerSummary struct {
type ConfigFlags struct {
List *bool
ListAll *bool
JsonOutput *bool
JSONOutput *bool
Check *bool
ConfigFile *string
Child *bool
@ -507,7 +507,7 @@ func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error {
}
}
if *flags.List || *flags.ListAll {
config.printRegisteredServers(proxy, *flags.JsonOutput)
config.printRegisteredServers(proxy, *flags.JSONOutput)
os.Exit(0)
}
if proxy.routes != nil && len(*proxy.routes) > 0 {

View File

@ -49,7 +49,7 @@ func main() {
flags := ConfigFlags{}
flags.List = flag.Bool("list", false, "print the list of available resolvers for the enabled filters")
flags.ListAll = flag.Bool("list-all", false, "print the complete list of available resolvers, ignoring filters")
flags.JsonOutput = flag.Bool("json", false, "output list as JSON")
flags.JSONOutput = flag.Bool("json", false, "output list as JSON")
flags.Check = flag.Bool("check", false, "check the configuration file and exit")
flags.ConfigFile = flag.String("config", DefaultConfigFileName, "Path to the configuration file")
flags.Child = flag.Bool("child", false, "Invokes program as a child process")