Skip to main content

cmd_create

Function cmd_create 

Source
pub fn cmd_create(mana_dir: &Path, args: CreateArgs) -> Result<String>
Expand description

Create a new unit.

If args.parent is given, assign a child ID ({parent_id}.{next_child}). Otherwise, use the next sequential ID from config and increment it. Returns the created unit ID on success.