devspace 0.1.0

devspace helps you to quickly start all the programs you need to dev using Tmux and other tools.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! The `remove-tree` command.

use crate::{Context, Result, config::SpaceTreeId};

pub fn command(ctx: &mut Context, tree_name: String) -> Result {
    // because we propagate the error the check is still performed.
    ctx.config.get_tree(&SpaceTreeId(tree_name.clone()))?;

    ctx.config.remove_tree(tree_name);
    Ok(())
}