chore: update gitignore and simplify changelog generator error handling

## CHANGES

- Add .claude/ directory to gitignore exclusions
- Update comment clarity for SilenceUsage flag
- Remove redundant error handling in main function
- Simplify command execution without explicit error checking
This commit is contained in:
Kayvan Sylvan
2025-07-20 18:49:32 -07:00
parent 951bd134eb
commit e56ecfb7ae
2 changed files with 5 additions and 5 deletions

3
.gitignore vendored
View File

@@ -350,3 +350,6 @@ web/static/*.png
# Local tmp directory
.tmp/
tmp/
# Ignore .claude/
.claude/

View File

@@ -22,7 +22,7 @@ var rootCmd = &cobra.Command{
collects version information and pull requests, and generates a
comprehensive changelog in markdown format.`,
RunE: run,
SilenceUsage: true, // Don't show usage on errors
SilenceUsage: true, // Don't show usage on runtime errors, only on flag errors
}
func init() {
@@ -94,8 +94,5 @@ func main() {
}
}
if err := rootCmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
rootCmd.Execute()
}