From 90410f01456036a05bf09879c34f806e07f3b418 Mon Sep 17 00:00:00 2001 From: 1138-4EB <1138-4EB@users.noreply.github.com> Date: Tue, 8 Jan 2019 20:56:22 +0100 Subject: [PATCH] rename getServerWithViper to getRunParams --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index e49595b5..0c71df09 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -100,7 +100,7 @@ user created with the credentials from options "username" and "password".`, quickSetup(cmd.Flags(), d) } - server := getServerWithViper(cmd.Flags(), d.store) + server := getRunParams(cmd.Flags(), d.store) setupLog(server.Log) root, err := filepath.Abs(server.Root) @@ -131,7 +131,7 @@ user created with the credentials from options "username" and "password".`, }, pythonConfig{allowNoDB: true}), } -func getServerWithViper(flags *pflag.FlagSet, st *storage.Storage) *settings.Server { +func getRunParams(flags *pflag.FlagSet, st *storage.Storage) *settings.Server { server, err := st.Settings.GetServer() checkErr(err)