aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/nekoimport.go
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-02-25 17:56:23 -0800
committerAdam Mathes <adam@trenchant.org>2017-02-25 17:56:23 -0800
commit51ec94414baf43fb637aad6ac17c8f60bedd14eb (patch)
treed748c00367ca4e4b61d8e4c116c1ca80aa939f38 /cmd/nekoimport.go
parent8359198e5edb272311e10c77e6bf4cb662abd5ec (diff)
downloadneko-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/nekoimport.go')
-rw-r--r--cmd/nekoimport.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/cmd/nekoimport.go b/cmd/nekoimport.go
deleted file mode 100644
index 65f7b8f..0000000
--- a/cmd/nekoimport.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package main
-
-import (
- _ "adammathes.com/neko/util"
- "adammathes.com/neko/models/feed"
- "fmt"
- "io/ioutil"
- "log"
- "os"
- "strings"
-)
-
-func main() {
- if len(os.Args) < 2 {
- fmt.Printf("usage: nekoimport config.json <feeds.txt>\n\n format is one URL per line\n")
- }
-
- fb, err := ioutil.ReadFile(os.Args[2])
- if err != nil {
- log.Fatal("could not read file\n")
- }
-
- feeds := strings.Split(string(fb), "\n")
- for _,f := range feeds {
- feed.NewFeed(f)
- }
-}