soroban_cli/commands/keys/
rm.rs1use clap::command;
2
3use crate::commands::global;
4
5use super::super::config::locator;
6
7#[derive(thiserror::Error, Debug)]
8pub enum Error {
9 #[error(transparent)]
10 Locator(#[from] locator::Error),
11}
12
13#[derive(Debug, clap::Parser, Clone)]
14#[group(skip)]
15pub struct Cmd {
16 pub name: String,
18
19 #[command(flatten)]
20 pub config: locator::Args,
21}
22
23impl Cmd {
24 pub fn run(&self, global_args: &global::Args) -> Result<(), Error> {
25 Ok(self.config.remove_identity(&self.name, global_args)?)
26 }
27}