Skip to main content

cmd_create_next

Function cmd_create_next 

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

Create a new unit that automatically depends on @latest (the most recently updated unit).

This enables sequential chaining:

mana create "Step 1" -p
mana create next "Step 2" --verify "cargo test step2"
mana create next "Step 3" --verify "cargo test step3"

If args.deps already contains dependencies, @latest is prepended. Returns the created unit ID on success.