concinnity-dev 0.19.119

The Concinnity dev tooling library: world authoring, the in-engine editor, the debug server, docs and packaging
1
2
3
4
5
6
7
8
9
10
//! Discovery wrapper around `crate::authoring::rm_at_path`.

use crate::authoring::rm_at_path;
use crate::command::discover_world_path;

/// Delete the asset named `name` from the discovered world.
pub fn rm(name: &str) -> std::io::Result<()> {
    let world_path = discover_world_path()?;
    rm_at_path(&world_path, name)
}