diff --git a/cmd/today.go b/cmd/today.go index 827e80c..a75e69a 100644 --- a/cmd/today.go +++ b/cmd/today.go @@ -39,14 +39,4 @@ to quickly create a Cobra application.`, func init() { rootCmd.AddCommand(todayCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // todayCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // todayCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/internal/feed.go b/internal/feed.go index 3f55199..2eda21b 100644 --- a/internal/feed.go +++ b/internal/feed.go @@ -19,8 +19,10 @@ func Add(feedUrl string) error { return err } + fmt.Printf("feed: %+v", feed) + // TODO: I have everything here (feed), might as well store it right away - // Add an article table that stores the feed data that is parsed here + // So, implement a loop to do that here f := database.Feed{ Name: feed.Title,