Closed hay-kot closed 1 month ago
@coderabbitai - review this pr
@hay-kot: I will review this PR.
The changes in this pull request involve multiple modifications across various files, primarily focusing on enhancing functionality and structure. Key updates include the introduction of new methods and types, such as Package
, ListTree
, and Version
, as well as improvements to existing methods like List
, New
, and Update
. Additionally, the .gitignore
file has been updated to ignore specific files. The overall changes aim to improve the organization and handling of scaffolds, versioning, and repository interactions.
File | Change Summary |
---|---|
.gitignore | Added entries for .env and .cache , adjusted formatting, and included a comment for the vendor/ directory. |
app/commands/cmd_list.go | Updated List method to create a structured list of system scaffolds using printer.ListTree . |
app/commands/cmd_new.go | Modified New method for better handling of project names and refined fuzzyFallBack method for scaffold matching. |
app/commands/cmd_update.go | Changed Update method to consistently reference s.Root instead of s for scaffolds. |
app/scaffold/pkgs/cloner.go | Updated Clone method signatures in Cloner interface and ClonerFunc type to include a new version parameter. |
app/scaffold/pkgs/list.go | Introduced PackageList struct and updated ListSystem function to return a slice of PackageList . |
app/scaffold/pkgs/pkgs.go | Added Package struct and methods for managing package information, and revamped ParseRemote function. |
app/scaffold/pkgs/pkgs_test.go | Renamed and updated tests for parsing remote repository paths to reflect new behavior. |
app/scaffold/pkgs/pkgurl/url.go | Introduced Parts struct for parsed URLs and added parsing functionality. |
app/scaffold/pkgs/resolver.go | Enhanced NewResolver and resolveRemote methods to handle versioning and improved path handling. |
app/scaffold/pkgs/resolver_test.go | Updated ClonerFunc signature in tests to include version parameter. |
app/scaffold/pkgs/update.go | Added Update function to handle updating Git repositories. |
app/scaffold/pkgs/version.go | Introduced Version struct and methods for managing versioning information. |
internal/printer/printer.go | Added ListTree type and method for hierarchical printing of lists. |
taskfile.yml | Added environment variable entry for .env and adjusted formatting for existing entries. |
Objective | Addressed | Explanation |
---|---|---|
Determine what version is pulled by default? (#4) | ✅ | |
Support repository tags (#1) | ✅ |
🐰 In the garden where ideas bloom,
New structures rise, dispelling gloom.
With trees of lists and packages bright,
Our code now dances, a joyful sight!
Versioning clear, paths defined,
A rabbit's delight, in code aligned! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closes #4 Closes #1
To Do's
@branch
@tag
and@commit
Summary by CodeRabbit
New Features
.env
files.Version
struct for encapsulating versioning information of Git repositories.Bug Fixes
Documentation
Chores