Skip to content

feat: add --prefix/-p flag to relay add and update#15

Merged
ffgenius merged 1 commit into
masterfrom
feat_args
Jul 2, 2026
Merged

feat: add --prefix/-p flag to relay add and update#15
ffgenius merged 1 commit into
masterfrom
feat_args

Conversation

@ffgenius

@ffgenius ffgenius commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Allow users to force Prefix mode when registering commands with default arguments, so runtime extra args are appended instead of rejected.

Usage: relay add gt git -p clone
gt repo-url → git clone repo-url
gt --depth 1 url → git clone --depth 1 url

  • cli.rs: Add --prefix/-p flag to Add and Update variants
  • registry/mod.rs: Use prefix flag in kind determination
  • tests: Add add_prefix_with_args and update_to_prefix_with_args tests
  • README: Document --prefix usage in both English and Chinese

Allow users to force Prefix mode when registering commands with default
arguments, so runtime extra args are appended instead of rejected.

Usage: relay add gt git -p clone
       gt repo-url      → git clone repo-url
       gt --depth 1 url → git clone --depth 1 url

- cli.rs: Add --prefix/-p flag to Add and Update variants
- registry/mod.rs: Use prefix flag in kind determination
- tests: Add add_prefix_with_args and update_to_prefix_with_args tests
- README: Document --prefix usage in both English and Chinese

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@ffgenius ffgenius merged commit 6f2e77c into master Jul 2, 2026
4 checks passed
@ffgenius ffgenius deleted the feat_args branch July 2, 2026 07:45
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.

1 participant