Commit 655a971
committed
Allow direct URL syntax: ctxc index <url> without 'url' subcommand
Adds pre-parse argument rewriting that auto-detects when a URL is passed
directly to 'ctxc index' and transparently inserts the 'url' subcommand.
Before: ctxc index url https://github.com/owner/repo
After: ctxc index https://github.com/owner/repo
Both syntaxes now work. Existing subcommands (github, gitlab, etc.) are
unchanged and continue to work.
Agent-Id: agent-ce81a04d-72f2-4289-8eb7-c3074d7d80301 parent bef6eb7 commit 655a971
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
33 | 45 | | |
| 46 | + | |
0 commit comments