CLI that turns LLM input into well-formatted Conventional Commits
0

Configure Feed

Select the types of activity you want to include in your feed.

refactor(init): panic on error marking required

Amolith (Oct 21, 2025, 7:23 PM -0600) 624f1c83 af690d65

+6 -2
+6 -2
main.go
··· 61 61 rootCmd.Flags().StringVarP(&scope, "scope", "s", "", "commit scope (optional)") 62 62 rootCmd.Flags().BoolVarP(&breakingChange, "breaking", "B", false, "mark as breaking change (optional)") 63 63 64 - rootCmd.MarkFlagRequired("type") 65 - rootCmd.MarkFlagRequired("message") 64 + if err := rootCmd.MarkFlagRequired("type"); err != nil { 65 + panic(err) 66 + } 67 + if err := rootCmd.MarkFlagRequired("message"); err != nil { 68 + panic(err) 69 + } 66 70 } 67 71 68 72 func main() {