aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-01-23 20:04:03 -0800
committerAdam Mathes <adam@trenchant.org>2017-01-23 20:04:03 -0800
commit93d6d36eb697cd9452eb4aab446151a1a33ed245 (patch)
treec9cb88718d03a6964f6d3705066f11d356257d37 /cmd
downloadneko-93d6d36eb697cd9452eb4aab446151a1a33ed245.tar.gz
neko-93d6d36eb697cd9452eb4aab446151a1a33ed245.tar.bz2
neko-93d6d36eb697cd9452eb4aab446151a1a33ed245.zip
neko v2 initial commit
Diffstat (limited to 'cmd')
-rw-r--r--cmd/nekocrawl.go14
-rw-r--r--cmd/nekoweb.go14
2 files changed, 28 insertions, 0 deletions
diff --git a/cmd/nekocrawl.go b/cmd/nekocrawl.go
new file mode 100644
index 0000000..2852e4f
--- /dev/null
+++ b/cmd/nekocrawl.go
@@ -0,0 +1,14 @@
+package main
+
+import (
+ "neko/config"
+ "neko/crawler"
+ "neko/models"
+ "os"
+)
+
+func main() {
+ config.Read(os.Args[1])
+ models.InitDB(config.Config.DBServer)
+ crawler.Crawl()
+}
diff --git a/cmd/nekoweb.go b/cmd/nekoweb.go
new file mode 100644
index 0000000..0904a61
--- /dev/null
+++ b/cmd/nekoweb.go
@@ -0,0 +1,14 @@
+package main
+
+import (
+ "neko/config"
+ "neko/models"
+ "neko/web"
+ "os"
+)
+
+func main() {
+ config.Read(os.Args[1])
+ models.InitDB(config.Config.DBServer)
+ web.Serve()
+}