pub fn cmd_close(
beans_dir: &Path,
ids: Vec<String>,
reason: Option<String>,
force: bool,
) -> Result<()>Expand description
Close one or more beans.
Sets status=closed, closed_at=now, and optionally close_reason. If the bean has a verify command, it must pass before closing (unless force=true). Calls pre-close hook before verify (can block close if hook fails). Auto-closes parent beans when all children are closed (if enabled in config). Rebuilds the index.