manta-cli 1.62.4

Another CLI for ALPS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anyhow::Error;

use crate::common::app_context::AppContext;
use crate::service::node;

/// CLI adapter for `manta delete node`.
pub async fn exec(
  ctx: &AppContext<'_>,
  token: &str,
  id: &str,
) -> Result<(), Error> {
  node::delete_node(&ctx.infra, token, id).await?;
  println!("Node deleted '{}'", id);
  Ok(())
}