concinnity_dev/command/rm.rs
1// src/cli/rm.rs: discovery wrapper around crate::rm_at_path
2
3use crate::rm_at_path;
4use concinnity_cook::authoring::world::find_world_jsonl;
5
6/// Delete the asset named `name` from the discovered world.
7pub fn rm(name: &str) -> std::io::Result<()> {
8 let world_path = find_world_jsonl(crate::project::worlds_dir().as_deref(), None)?;
9 rm_at_path(&world_path, name)
10}