Skip to content
Draft
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
1 change: 1 addition & 0 deletions crates/openshell-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ anyhow = { workspace = true }

# File archiving (tar-over-SSH sync)
tar = "0.4"
tempfile = "3"

# OIDC/Auth
oauth2 = "5"
Expand Down
8 changes: 2 additions & 6 deletions crates/openshell-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2374,12 +2374,8 @@ async fn main() -> Result<()> {
let ctx = resolve_gateway(&cli.gateway, &cli.gateway_endpoint)?;
let mut tls = tls.with_gateway_name(&ctx.name);
apply_auth(&mut tls, &ctx.name);
let local_dest = std::path::Path::new(dest.as_deref().unwrap_or("."));
eprintln!(
"Downloading sandbox:{} -> {}",
sandbox_path,
local_dest.display()
);
let local_dest = dest.as_deref().unwrap_or(".");
eprintln!("Downloading sandbox:{sandbox_path} -> {local_dest}");
run::sandbox_sync_down(&ctx.endpoint, &name, &sandbox_path, local_dest, &tls)
.await?;
eprintln!("{} Download complete", "✓".green().bold());
Expand Down
8 changes: 2 additions & 6 deletions crates/openshell-cli/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2200,12 +2200,8 @@ pub async fn sandbox_sync_command(
eprintln!("{} Sync complete", "✓".green().bold());
}
(None, Some(sandbox_path)) => {
let local_dest = Path::new(dest.unwrap_or("."));
eprintln!(
"Syncing sandbox:{} -> {}",
sandbox_path,
local_dest.display()
);
let local_dest = dest.unwrap_or(".");
eprintln!("Syncing sandbox:{sandbox_path} -> {local_dest}");
sandbox_sync_down(server, name, sandbox_path, local_dest, tls).await?;
eprintln!("{} Sync complete", "✓".green().bold());
}
Expand Down
Loading
Loading