Skip to main content

cmd_create_next

Function cmd_create_next 

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

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

This enables sequential chaining:

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

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