Description
It's easy to forget --remote when running commands like:
repomix https://github.com/PowerShell/ConsoleGuiTools
Currently this errors out treating it as a local path. Auto-detecting remote URLs would be more intuitive.
Proposed implementation:
Based on my understanding of the codebase, we could add auto-detection in src/cli/cliRun.ts using the existing isValidRemoteValue() function from src/core/git/gitRemoteParse.ts.
Pseudocode:
if --remote flag is set:
use runRemoteAction with the flag value
else if single directory argument provided:
check if path exists locally
if NOT local path AND isValidRemoteValue(argument):
auto-detect as remote, use runRemoteAction
else:
treat as local directory
else:
use runDefaultAction for multiple directories
Precedence would be:
- Explicit
--remote flag (highest priority)
- Local path exists → use local
- Valid remote URL/shorthand → auto-detect and clone
- Otherwise → proceed with default local handling
This would allow intuitive commands like repomix owner/repo while respecting existing local folders with the same name.
Description
It's easy to forget
--remotewhen running commands like:Currently this errors out treating it as a local path. Auto-detecting remote URLs would be more intuitive.
Proposed implementation:
Based on my understanding of the codebase, we could add auto-detection in
src/cli/cliRun.tsusing the existingisValidRemoteValue()function fromsrc/core/git/gitRemoteParse.ts.Pseudocode:
Precedence would be:
--remoteflag (highest priority)This would allow intuitive commands like
repomix owner/repowhile respecting existing local folders with the same name.