feat(cli)!: rename --prompt to --temp-role
Completes the .prompt/.temp-role split: --prompt set an ad-hoc system role, which is what .temp-role now means everywhere. The --prompt name is left unbound so a future one-shot MCP prompt flag can take it with properly designed non-interactive semantics. use_prompt follows the rename as use_temp_role. BREAKING CHANGE: invocations using --prompt <text> must switch to --temp-role <text>; clap rejects the old flag loudly.
This commit is contained in:
+2
-2
@@ -380,8 +380,8 @@ async fn run(
|
||||
.await?;
|
||||
} else {
|
||||
let app: Arc<AppConfig> = Arc::clone(&ctx.app.config);
|
||||
if let Some(prompt) = &cli.prompt {
|
||||
ctx.use_prompt(app.as_ref(), prompt)?;
|
||||
if let Some(prompt) = &cli.temp_role {
|
||||
ctx.use_temp_role(app.as_ref(), prompt)?;
|
||||
} else if let Some(name) = &cli.role {
|
||||
ctx.use_role(app.as_ref(), name, abort_signal.clone())
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user