feat: --mode flag passed to tui

This commit is contained in:
adamdottv
2025-07-10 10:19:25 -05:00
parent 5dc1920a4c
commit 6603d9a9f0
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",