mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-13 11:03:24 +00:00
fix(core): render built-in command arguments (#45697)
This commit is contained in:
parent
80323a4deb
commit
ee42eb3ca3
2 changed files with 51 additions and 4 deletions
|
|
@ -84,7 +84,9 @@ export const Plugin = define({
|
|||
})
|
||||
|
||||
function append(template: string, input: string) {
|
||||
return [template, input.trim()].filter(Boolean).join("\n\n")
|
||||
const value = input.trim()
|
||||
if (template.includes("$ARGUMENTS")) return template.replaceAll("$ARGUMENTS", () => value)
|
||||
return [template, value].filter(Boolean).join("\n\n")
|
||||
}
|
||||
|
||||
function parseArguments(input: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue