Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

## [0.13.2](https://github.com/pkgforge/soar/compare/v0.13.1...v0.13.2) - 2026-08-10

### ⛰️ Features

- *(cli)* Expose soar to frontends with JSON output and a plugin manifest ([#192](https://github.com/pkgforge/soar/pull/192)) - ([1ea7f51](https://github.com/pkgforge/soar/commit/1ea7f51c854c007de53b734de5a3892baaba2c2e))

## [0.13.1](https://github.com/pkgforge/soar/compare/v0.13.0...v0.13.1) - 2026-08-05

### ⛰️ Features
Expand Down
16 changes: 10 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ serde_json = { version = "1.0.150", features = ["indexmap"] }
serial_test = "3.5.0"
sha2 = "0.11.0"
soar-config = { version = "0.12.0", path = "crates/soar-config" }
soar-core = { version = "0.17.1", path = "crates/soar-core" }
soar-db = { version = "0.6.1", path = "crates/soar-db" }
soar-core = { version = "0.17.2", path = "crates/soar-core" }
soar-db = { version = "0.6.2", path = "crates/soar-db" }
soar-dl = { version = "0.12.0", path = "crates/soar-dl" }
soar-events = { version = "0.2.0", path = "crates/soar-events" }
soar-operations = { version = "0.4.1", path = "crates/soar-operations" }
soar-events = { version = "0.3.0", path = "crates/soar-events" }
soar-operations = { version = "0.4.2", path = "crates/soar-operations" }
soar-package = { version = "0.5.0", path = "crates/soar-package" }
soar-registry = { version = "0.6.1", path = "crates/soar-registry" }
soar-registry = { version = "0.6.2", path = "crates/soar-registry" }
soar-utils = { version = "0.5.0", path = "crates/soar-utils" }
squishy = { version = "0.5.1", features = ["appimage", "dwarfs"] }
tabled = { version = "0.21", default-features = false, features = ["ansi"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/soar-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "soar-cli"
version = "0.13.1"
version = "0.13.2"
description = "A modern package manager for Linux"
default-run = "soar"
license.workspace = true
Expand Down
14 changes: 12 additions & 2 deletions crates/soar-cli/src/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ use tabled::{
};
use tracing::{info, warn};

use crate::utils::{display_settings, icon_or, Colored, Icons};
use crate::{
json_output::{self, ApplyDiffJson},
utils::{display_settings, event_stream_enabled, icon_or, Colored, Icons},
};

pub async fn apply_packages(
ctx: &SoarContext,
Expand All @@ -23,7 +26,7 @@ pub async fn apply_packages(
let config = PackagesConfig::load(packages_config.as_deref())?;
let resolved = config.resolved_packages();

if resolved.is_empty() {
if resolved.is_empty() && !(dry_run && event_stream_enabled()) {
info!("No packages declared in configuration");
return Ok(());
}
Expand All @@ -32,6 +35,13 @@ pub async fn apply_packages(

let diff = apply::compute_diff(ctx, &resolved, prune).await?;

// A dry run is a question rather than an operation, so it answers with the
// diff itself instead of streaming what it would do.
if dry_run && event_stream_enabled() {
json_output::emit(&ApplyDiffJson::new(&diff));
return Ok(());
}

display_diff(&diff, prune);

if !diff.has_changes() && !diff.has_toml_updates() {
Expand Down
8 changes: 8 additions & 0 deletions crates/soar-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ pub enum Commands {
#[arg(required = false, long, short)]
ask: bool,

/// Report what would be updated, without updating anything
#[arg(required = false, long, conflicts_with_all = ["ask", "keep", "no_verify"])]
check: bool,

/// Skip checksum verification
#[arg(required = false, long)]
no_verify: bool,
Expand Down Expand Up @@ -487,6 +491,10 @@ pub enum Commands {
#[clap(name = "env")]
Env,

/// Print how a frontend should drive this soar
#[clap(name = "plugin-manifest")]
PluginManifest,

/// Garbage collection
#[clap(name = "clean")]
Clean {
Expand Down
Loading
Loading