feat: project scaffold with cobra root and domain types

This commit is contained in:
2026-04-03 11:17:38 +02:00
parent dc20062434
commit 04b62e6d3b
5 changed files with 92 additions and 0 deletions

20
cmd/root.go Normal file
View File

@@ -0,0 +1,20 @@
package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "reddit-reader",
Short: "Monitor subreddits for interesting posts",
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}