2020-10-17 13:30:30 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
_ "github.com/mattn/go-sqlite3"
|
|
|
|
"github.com/spf13/viper"
|
|
|
|
|
|
|
|
"github.com/averagemarcus/gopherss/cmd"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
// Load config
|
|
|
|
setDefaultConfig()
|
2020-10-17 19:55:05 +00:00
|
|
|
viper.AutomaticEnv()
|
2020-10-17 13:30:30 +00:00
|
|
|
|
|
|
|
cmd.Execute()
|
|
|
|
}
|
|
|
|
|
|
|
|
func setDefaultConfig() {
|
2020-10-17 19:55:05 +00:00
|
|
|
viper.SetDefault("REFRESH_TIMEOUT", 15)
|
|
|
|
viper.SetDefault("DB_PATH", "./feeds.db")
|
2020-10-17 13:30:30 +00:00
|
|
|
}
|