pub async fn add_nodes(
opts: AddNodeOpts,
registry_path: &Path,
progress: &dyn ProgressReporter,
) -> Result<AddNodeResult>Expand description
Add one or more nodes to the registry.
This function:
- Resolves the binary (download if needed)
- Loads the registry (with file lock)
- Validates port ranges match count
- Creates data and log directories for each node
- Assigns IDs and saves the registry
Does NOT start the nodes. Does NOT require the daemon.