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