diff options
author | Adam Mathes <adam@trenchant.org> | 2017-02-25 17:56:23 -0800 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2017-02-25 17:56:23 -0800 |
commit | 51ec94414baf43fb637aad6ac17c8f60bedd14eb (patch) | |
tree | d748c00367ca4e4b61d8e4c116c1ca80aa939f38 /cmd/util.go | |
parent | 8359198e5edb272311e10c77e6bf4cb662abd5ec (diff) | |
download | neko-51ec94414baf43fb637aad6ac17c8f60bedd14eb.tar.gz neko-51ec94414baf43fb637aad6ac17c8f60bedd14eb.tar.bz2 neko-51ec94414baf43fb637aad6ac17c8f60bedd14eb.zip |
remove weird multi-cmd stuff, single binary with standard go-flags is much easier to understand/maintain
Diffstat (limited to 'cmd/util.go')
-rw-r--r-- | cmd/util.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cmd/util.go b/cmd/util.go deleted file mode 100644 index 59e7b8e..0000000 --- a/cmd/util.go +++ /dev/null @@ -1,18 +0,0 @@ -package util - -import ( - "adammathes.com/neko/config" - "adammathes.com/neko/models" - "os" -) - -var DEFAULT_CONFIG = "config.json" - -func init() { - var configFile = DEFAULT_CONFIG - if len(os.Args) > 1 { - configFile = os.Args[1] - } - config.Read(configFile) - models.InitDB(config.Config.DBServer) -} |