feat: --mode flag passed to tui

This commit is contained in:
adamdottv 2025-07-10 10:19:25 -05:00
commit 6603d9a9f0
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
4 changed files with 18 additions and 5 deletions

View file

@ -31,6 +31,10 @@ export const TuiCommand = cmd({
alias: ["p"],
type: "string",
describe: "prompt to use",
})
.option("mode", {
type: "string",
describe: "mode to use",
}),
handler: async (args) => {
while (true) {
@ -78,6 +82,7 @@ export const TuiCommand = cmd({
...cmd,
...(args.model ? ["--model", args.model] : []),
...(args.prompt ? ["--prompt", args.prompt] : []),
...(args.mode ? ["--mode", args.mode] : []),
],
cwd,
stdout: "inherit",