Skip to content
Snippets Groups Projects
Commit 1a04e574 authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

remove db command from setup

parent 72301fe6
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import (
"os"
"github.com/Songmu/prompter"
flags "github.com/jessevdk/go-flags"
"github.com/jessevdk/go-flags"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
......@@ -18,7 +18,6 @@ import (
)
var genSigningKeyComm commandGenSigningKey
var createDBComm commandCreateDB
var installComm struct {
GeoIP commandInstallGeoIPDB `command:"geoip-db" description:"Installs the ip geolocation database."`
}
......@@ -32,10 +31,6 @@ func main() {
log.WithError(err).Fatal()
os.Exit(1)
}
if _, err := parser.AddCommand("db", "Setups the database", "Setups the database as needed and specified in the config file.", &createDBComm); err != nil {
log.WithError(err).Fatal()
os.Exit(1)
}
if _, err := parser.AddCommand("install", "Installs needed dependencies", "", &installComm); err != nil {
log.WithError(err).Fatal()
os.Exit(1)
......@@ -55,10 +50,6 @@ func main() {
}
type commandGenSigningKey struct{}
type commandCreateDB struct {
Username string `short:"u" long:"user" default:"root" description:"This username is used to connect to the database to create a new database, database user, and tables."`
Password *string `short:"p" optional:"true" optional-value:"" long:"password" description:"The password for the database user"`
}
type commandInstallGeoIPDB struct{}
// Execute implements the flags.Commander interface
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment