feat: Modified --skill CLI to allow users to specify skills to start the REPL or CLI with.

This commit is contained in:
2026-06-01 14:20:45 -06:00
parent bf8dad2a4f
commit 588c69ea6c
2 changed files with 11 additions and 10 deletions
+7 -1
View File
@@ -197,7 +197,9 @@ async fn run(
println!("{skills}");
return Ok(());
}
if let Some(name) = &cli.skill {
if let Some(name) = &cli.skill
&& !paths::has_skill(name)
{
let app = Arc::clone(&ctx.app.config);
ctx.upsert_skill(app.as_ref(), name)?;
return Ok(());
@@ -315,6 +317,10 @@ async fn run(
.await?;
}
if let Some(name) = &cli.skill {
ctx.load_skill_repl(name, abort_signal.clone()).await?;
}
match is_repl {
false => {
let mut input = create_input(&ctx, text, &cli.file, abort_signal.clone()).await?;