chore: adapts comments
This commit is contained in:
parent
1c4a83981e
commit
ee313ed28c
2 changed files with 3 additions and 11 deletions
10
cmd/today.go
10
cmd/today.go
|
|
@ -39,14 +39,4 @@ to quickly create a Cobra application.`,
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(todayCmd)
|
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")
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,10 @@ func Add(feedUrl string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Printf("feed: %+v", feed)
|
||||||
|
|
||||||
// TODO: I have everything here (feed), might as well store it right away
|
// 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{
|
f := database.Feed{
|
||||||
Name: feed.Title,
|
Name: feed.Title,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue