Skip to content

Fix issue #8: Multi path input for output compilation #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

chand1012
Copy link
Owner

This pull request fixes #8.

The issue has been successfully resolved. The PR modified the git2gpt tool to accept multiple repository paths as input arguments, allowing users to process files from different locations in a single run.

Key changes include:

  1. Updated the command definition from requiring exactly one argument (cobra.ExactArgs(1)) to accepting one or more arguments (cobra.MinimumNArgs(1))
  2. Modified the command's usage description to indicate multiple paths are supported
  3. Added an example showing how to use multiple paths
  4. Implemented a loop to process each provided repository path and combine their files into a single output
  5. Created a test file (multi_path_test.go) that verifies the functionality works with multiple directories
  6. Added test repositories with sample files to validate the implementation

The changes directly address the user's request to "paste all the required paths one after another" when files are spread across different folders. Now users can simply list all paths as arguments (e.g., git2gpt /path/to/repo1 /path/to/repo2) and get a combined output, eliminating the need to run git2gpt multiple times and manually merge the results.

Automatic fix generated by OpenHands 🙌

@chand1012 chand1012 marked this pull request as ready for review March 20, 2025 20:27
@chand1012 chand1012 merged commit 3d8fdd7 into main Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi path input for output compilation
2 participants