Skip to content

Commit d32f1ea

Browse files
raltclaude
andcommitted
Fix: Add missing cmd/repogen/main.go and update .gitignore
The cmd/repogen/main.go file was accidentally ignored by .gitignore because the pattern "repogen" was matching the directory name. Changes: - Change .gitignore pattern from "repogen" to "/repogen" to only ignore the binary in the root directory - Add cmd/repogen/main.go that was previously ignored This fixes the GitHub Actions failures where workflows couldn't find the main.go file to build. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 2b9bd40 commit d32f1ea

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Binaries
2-
repogen
2+
/repogen
33
*.exe
44
*.dll
55
*.so

cmd/repogen/main.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package main
2+
3+
import (
4+
"os"
5+
6+
"github.com/ralt/repogen/internal/cli"
7+
"github.com/sirupsen/logrus"
8+
)
9+
10+
func main() {
11+
// Setup logging format
12+
logrus.SetFormatter(&logrus.TextFormatter{
13+
FullTimestamp: true,
14+
})
15+
16+
rootCmd := cli.NewRootCmd()
17+
if err := rootCmd.Execute(); err != nil {
18+
logrus.Error(err)
19+
os.Exit(1)
20+
}
21+
}

0 commit comments

Comments
 (0)