kratactl: make things nicer to use from a scripting standpoint

This commit is contained in:
Alex Zenla
2024-03-23 10:09:00 +00:00
parent e25cbf087d
commit 7543fccfaf
4 changed files with 99 additions and 20 deletions

View File

@ -56,7 +56,7 @@ impl ControlCommand {
}
Commands::Destroy(destroy) => {
destroy.run(client).await?;
destroy.run(client, events).await?;
}
Commands::Attach(attach) => {
@ -93,6 +93,6 @@ pub async fn resolve_guest(
if let Some(guest) = reply.guest {
Ok(guest.id)
} else {
Err(anyhow!("unable to resolve guest {}", name))
Err(anyhow!("unable to resolve guest '{}'", name))
}
}