diff --git a/cmd/main.go b/cmd/main.go index 809b076..4a3b865 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,4 +1,4 @@ -package main +package cmd import ( "bufio" @@ -20,8 +20,7 @@ type app struct { var a app -func main() { - // outputLogger := log.New(os.Stdout, "", 0) +func Run() { a.debugLogger = log.New(os.Stderr, "", 0) a.outputLogger = log.New(os.Stdout, "", 0) diff --git a/main.go b/main.go new file mode 100644 index 0000000..0bdcd64 --- /dev/null +++ b/main.go @@ -0,0 +1,7 @@ +package main + +import "github.com/mkadirtan/feed-toolbelt/cmd" + +func main() { + cmd.Run() +}