aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-02-02 19:49:14 -0800
committerAdam Mathes <adam@trenchant.org>2017-02-02 19:49:14 -0800
commit9c909da482895d1878eb84eec78ee8738d544a05 (patch)
tree471b91041c6054ae4c04aedba124e3028ccc7869 /main.go
parentdee417318bbed4cd14e21ec069ed5bc8d84df33b (diff)
downloadneko-9c909da482895d1878eb84eec78ee8738d544a05.tar.gz
neko-9c909da482895d1878eb84eec78ee8738d544a05.tar.bz2
neko-9c909da482895d1878eb84eec78ee8738d544a05.zip
fix includes
Diffstat (limited to 'main.go')
-rw-r--r--main.go24
1 files changed, 9 insertions, 15 deletions
diff --git a/main.go b/main.go
index 255b194..b7f76f3 100644
--- a/main.go
+++ b/main.go
@@ -1,25 +1,21 @@
package main
import (
- "os"
- "neko/config"
- "neko/models"
- "neko/models/feed"
- "neko/crawler"
- "neko/importer"
"fmt"
- // "io/ioutil"
+ "github.com/adammathes/neko/config"
+ "github.com/adammathes/neko/crawler"
+ "github.com/adammathes/neko/importer"
+ "github.com/adammathes/neko/models"
+ "github.com/adammathes/neko/models/feed"
+ "github.com/adammathes/neko/web"
"log"
- // "neko/models/item"
- // "neko/util"
- "neko/web"
+ "os"
)
func main() {
-
- // FIX
+ // TODO: change this
config.Read("./config.json")
-
+
models.InitDB(config.Config.DBServer)
if len(os.Args) < 2 {
fmt.Printf("usage: neko [web|addfeed|crawl]\n")
@@ -42,7 +38,6 @@ func main() {
}
}
-
func addFeed() {
if len(os.Args) < 2 {
log.Fatal("need a valid url")
@@ -57,7 +52,6 @@ func importLegacy() {
importer.ImportJSON(json_file)
}
-
func crawl() {
crawler.Crawl()
}