UX: Refactor config options to be more intuitive

Make sure to update your local config files when upgrading as
the name of some config values has changed. The default
config path has changed from "settings" to "config".
This commit is contained in:
Michael Mayer
2020-12-18 09:11:42 +01:00
parent cd59b1b8ca
commit 7940786ce9
49 changed files with 597 additions and 539 deletions

View File

@@ -51,14 +51,14 @@ func startAction(ctx *cli.Context) error {
fmt.Printf("NAME VALUE\n")
fmt.Printf("detach-server %t\n", conf.DetachServer())
fmt.Printf("http-host %s\n", conf.HttpServerHost())
fmt.Printf("http-port %d\n", conf.HttpServerPort())
fmt.Printf("http-mode %s\n", conf.HttpServerMode())
fmt.Printf("http-host %s\n", conf.HttpHost())
fmt.Printf("http-port %d\n", conf.HttpPort())
fmt.Printf("http-mode %s\n", conf.HttpMode())
return nil
}
if conf.HttpServerPort() < 1 || conf.HttpServerPort() > 65535 {
if conf.HttpPort() < 1 || conf.HttpPort() > 65535 {
log.Fatal("server port must be a number between 1 and 65535")
}