mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-28 08:49:38 +02:00
fix(cli): simplify setup flags and agents tty handling (#155)
* fix(cli): simplify setup flags and agents tty handling * fix(context): update ingest setup guidance flag
This commit is contained in:
parent
efda990de0
commit
590dd5dddb
20 changed files with 251 additions and 155 deletions
|
|
@ -1222,7 +1222,11 @@ export async function runKtxSetupAgentsStep(
|
|||
})) as KtxAgentTarget[]);
|
||||
if (targets.includes('back' as KtxAgentTarget)) return { status: 'back', projectDir: args.projectDir };
|
||||
if (targets.length === 0) {
|
||||
io.stderr.write('Missing agent target: pass --target or use interactive setup.\n');
|
||||
io.stderr.write(
|
||||
args.inputMode === 'disabled'
|
||||
? 'Run in a TTY, or pass --target <target>.\n'
|
||||
: 'Missing agent target: pass --target or use interactive setup.\n',
|
||||
);
|
||||
return { status: 'missing-input', projectDir: args.projectDir };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue