feat(cli): scan remote git repositories#3
Merged
Merged
Conversation
Change Scan CLI to accept a single source string (local path or git URL). cmd_scan detects git URLs, parses the remote, resolves/clones to the local cache (printing the remote/ref and cache path) and scans the cached path. Otherwise it scans the provided local path string. Remove the --write flag and the previous manifest saving behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request updates the
scancommand to support scanning both local directories and remote git repositories for agent files, simplifying its interface and improving test coverage. The most significant changes are the refactoring of the command's arguments, the addition of remote git support, and the introduction of unit tests for the scan functionality.Scan command enhancements:
scancommand now accepts asourceargument, which can be either a local path or a git URL (e.g.,github.com/org/repo@v1.0), instead of separatepathandwritearguments. This allows users to scan both local and remote sources with a unified interface. [1] [2]cmd_scanwas updated to detect git URLs, resolve and cache remote repositories locally, and then scan them for agent files.scancommand, simplifying its behavior.Testing improvements: