feat: feature complete install remote with category selection

This commit is contained in:
2026-05-22 17:00:11 -06:00
parent efb1b7b96b
commit 2fe365bef8
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -575,7 +575,7 @@ fn resolve_conflict(planned: &PlannedFile, sticky: &mut StickyMode) -> Result<Co
*sticky = StickyMode::ReplaceAll;
Ok(ConflictAction::Replace)
}
"abort" => bail!("Aborted by user."),
"abort" => bail!("Install aborted by user at conflict resolution."),
_ => unreachable!("inquire::Select returned an unexpected option"),
}
}
+8 -8
View File
@@ -92,6 +92,14 @@ async fn main() -> Result<()> {
install_builtins()?;
if let Some(category) = cli.install {
return config::install_assets(category);
}
if let Some(url) = cli.install_from.as_deref() {
return config::install_remote(url, cli.filter, cli.install_force);
}
if let Some(client_arg) = &cli.authenticate {
let cfg = Config::load_with_interpolation(true).await?;
let app_config = AppConfig::from_config(cfg)?;
@@ -152,14 +160,6 @@ async fn run(
text: Option<String>,
abort_signal: AbortSignal,
) -> Result<()> {
if let Some(category) = cli.install {
return config::install_assets(category);
}
if let Some(url) = cli.install_from.as_deref() {
return config::install_remote(url, cli.filter, cli.install_force);
}
if cli.sync_models {
let url = ctx.app.config.sync_models_url();
return sync_models(&url, abort_signal.clone()).await;
+1 -1
View File
@@ -220,7 +220,7 @@ static REPL_COMMANDS: LazyLock<[ReplCommand; 42]> = LazyLock::new(|| {
),
ReplCommand::new(
".install",
"Reinstall bundled agents, macros, functions, or MCP config (overwrites local changes)",
"Reinstall bundled assets, or install assets from a remote git repo (.install remote <url>)",
AssertState::pass(),
),
ReplCommand::new(