manta-cli 1.63.1

Another CLI for ALPS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Implements the `manta delete redfish-endpoint` command.

use anyhow::Error;

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

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