[WIP] Recreate support to clone all repositories (re-open PR #28 against main) #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recreate PR #28: feat: add support to clone all repositories
This PR recreates the changes from the original PR #28 targeting the
mainbranch.Summary of Changes
This PR adds a new
hoc allcommand that allows users to clone all repositories from the Heroes of Code organization without manual selection. It includes:Allsubcommand to enable non-interactive cloning of all repositoriesClone::clone_reposto accept anis_clone_allparameter that switches between interactive multi-select and clone-all flowsclone_all_reposhelper to handle bulk repository cloninghandle_clone_resulthelper to centralize clone result handling and reduce code duplicationhoc allcommand usage.idea/to.gitignorefor JetBrains IDEsOriginal PR Metadata
Why This PR Is Being Opened
This PR reopens the changes from PR #28 against the
mainbranch to ensure the feature is properly tracked and integrated into the main development branch. The original PR was merged and this recreates those changes with preserved commit history.Files Changed
.gitignore- Added.idea/directory for JetBrains IDEsREADME.md- Updated documentation with newhoc allcommandsrc/cli.rs- Added newAllcommand variant and routing logicsrc/clone.rs- Implemented clone-all functionality with helper functionsReview Points
is_clone_allboolean parameter inclone_repos()maintains backward compatibility while enabling the new feature without duplicating repository fetching logichandle_clone_resulthelper ensures consistent error messages across both clone modesTesting
cargo fmthoc clone) remains unchangedhoc all) properly implementedCommits Preserved from Original PR:
feat: add support to clone all repositories- Core functionalityfix: function name and message- Polish and refinementsOriginal prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.