Replace init.sh with a robust Go initialization tool#44
Replace init.sh with a robust Go initialization tool#44google-labs-jules[bot] wants to merge 4 commits into
Conversation
- Added `cmd/init/main.go` to handle repository initialization. - Implemented auto-detection for owner, repo, and Go version. - Replaced `sed` with safe Go-based string replacement. - Added support for updating import paths in `.go` files. - Added interactive prompts for missing information. - Updated `Makefile` to include an `init` target. - Updated `README.md` with new instructions. - Removed the legacy `init.sh` script.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Pull Request Test Coverage Report for Build 21126963084Details
💛 - Coveralls |
- Replaced `init.sh` with `cmd/init/main.go`. - Added `cmd/init/init_test.go` for integration testing. - Implemented `Config` struct and `Run` function for testability. - Updated `Makefile` to include an `init` target. - Updated `README.md` with new initialization instructions. - Updated `.github/workflows/go.yml` to verify the init script in CI. - Removed legacy `init.sh`.
Replaced the legacy
init.shbash script with a robust Go program (cmd/init/main.go). The new tool offers auto-detection of repository details, safe cross-platform file processing, and interactive prompts. It updatesgo.mod,Makefile,README.md, GitHub Actions configurations, and Go import paths. It also handles git hook deployment and self-cleanup after execution.MakefileandREADME.mdhave been updated to reflect the new usage.PR created automatically by Jules for task 1155010335296443994 started by @sha1n