canic-cli 0.67.5

Operator CLI for Canic fleet setup, builds, evidence, catalog, backup, and restore workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use canic_host::{icp::existing_local_canister_candid_path, registry::RegistryEntry};
use std::path::{Path, PathBuf};

pub fn role_candid_path(icp_root: Option<&Path>, network: &str, role: &str) -> Option<PathBuf> {
    existing_local_canister_candid_path(icp_root?, network, role)
}

pub fn registry_entry_candid_path(
    icp_root: Option<&Path>,
    network: &str,
    entry: &RegistryEntry,
) -> Option<PathBuf> {
    role_candid_path(icp_root, network, entry.role.as_deref()?)
}