mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
fix circular dependency
This commit is contained in:
parent
d5ce60c71f
commit
2c413925a3
1 changed files with 3 additions and 4 deletions
|
@ -23,7 +23,6 @@ package configuration
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"git.rwth-aachen.de/acs/public/villas/web-backend-go/helper"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
@ -52,9 +51,9 @@ func InitConfig() error {
|
||||||
port = flag.String("port", "4000", "Port of the backend (default is 4000)")
|
port = flag.String("port", "4000", "Port of the backend (default is 4000)")
|
||||||
baseHost = flag.String("base-host", "localhost:4000", "The host at which the backend is hosted (default: localhost)")
|
baseHost = flag.String("base-host", "localhost:4000", "The host at which the backend is hosted (default: localhost)")
|
||||||
basePath = flag.String("base-path", "/api/v2", "The path at which the API routes are located (default /api/v2)")
|
basePath = flag.String("base-path", "/api/v2", "The path at which the API routes are located (default /api/v2)")
|
||||||
adminUser = flag.String("admin-user", helper.User0.Username, "Initial admin username")
|
adminUser = flag.String("admin-user", "", "Initial admin username")
|
||||||
adminPass = flag.String("admin-pass", helper.StrPassword0, "Initial admin password")
|
adminPass = flag.String("admin-pass", "", "Initial admin password")
|
||||||
adminMail = flag.String("admin-mail", helper.User0.Mail, "Initial admin mail address")
|
adminMail = flag.String("admin-mail", "", "Initial admin mail address")
|
||||||
)
|
)
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue