kata 0.7.0

Multi-project template applier with AI-delegated merge
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! `kata unregister <name|path>` — drop a project from the global
//! registry. The PJ's `.kata/applied.toml` is left alone; this
//! only removes the registry pointer.

use crate::config::GlobalConfig;
use crate::error::Result;

pub fn run(key: String, no_color: bool) -> Result<()> {
    let _ = no_color;
    let mut config = GlobalConfig::load()?;
    config.remove_project(&key)?;
    config.save()?;
    println!("unregistered `{key}`");
    Ok(())
}