Commit 568448ba authored by ale's avatar ale

add feedsaver-server cli tool

parent 014a2c08
package main
import (
"flag"
"autistici.org/feedsaver"
)
var (
addr = flag.String("addr", ":5000", "TCP address to listen on")
storage_root = flag.String("storage_dir", "./tmp", "Root of the storage directory")
)
func main() {
flag.Parse()
storage := feedsaver.NewStorage(*storage_root)
feed := feedsaver.NewFeedsaver(storage)
feed.Run(*addr)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment