aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
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()
}