diff options
Diffstat (limited to 'conf/main.go')
-rw-r--r-- | conf/main.go | 8 |
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 { |