Skip to main content

cmd_create

Function cmd_create 

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

Create a new bean.

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 bean ID on success.