mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 04:01:56 +00:00
feat(coding-agent): add $ARGUMENTS syntax for slash commands (#418)
* feat(coding-agent): add $ARGUMENTS syntax for slash commands * test(coding-agent): add tests for slash command argument substitution
This commit is contained in:
parent
9e3b1408f3
commit
8917a1f853
4 changed files with 297 additions and 6 deletions
|
|
@ -647,7 +647,7 @@ Create a React component named $1 with features: $@
|
|||
|
||||
Usage: `/component Button "onClick handler" "disabled support"`
|
||||
- `$1` = `Button`
|
||||
- `$@` = all arguments joined
|
||||
- `$@` or `$ARGUMENTS` = all arguments joined (`Button onClick handler disabled support`)
|
||||
|
||||
**Namespacing:** Subdirectories create prefixes. `.pi/commands/frontend/component.md` → `/component (project:frontend)`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue