summaryrefslogtreecommitdiff
path: root/conf/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'conf/main.go')
-rw-r--r--conf/main.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/conf/main.go b/conf/main.go
index 052f086..f3a321e 100644
--- a/conf/main.go
+++ b/conf/main.go
@@ -33,12 +33,20 @@ func RegisterCommand(val int, cmd *Command) {
}
+func OpenDb() {
+ err := p.Open(params.DbFilename)
+ if err != nil { log.Fatal(err) }
+}
+
+
func main() {
p = &db.Phlox{}
cmds := map[int]*Command{
1: Create(),
2: SchemaVersion(),
+
+ 3: CreateUser(),
}
for val, cmd := range cmds {