manta-cli 2.0.0-beta.53

Another CLI for ALPS
//! Implements the `manta delete boot-parameters` command.

use anyhow::Error;

use crate::common::app_context::AppContext;
use crate::http_client::MantaClient;
use crate::output::action_result;

/// CLI adapter for `manta delete boot-parameters`.
pub async fn exec(
  ctx: &AppContext<'_>,
  token: &str,
  hosts: Vec<String>,
  output_opt: Option<&str>,
) -> Result<(), Error> {
  MantaClient::from_app_ctx(ctx)?
    .delete_boot_parameters(token, hosts)
    .await?;
  action_result::print("Boot parameters deleted successfully", output_opt)?;
  Ok(())
}