canic-installer 0.26.7

Published installer and release-set tooling for Canic downstream workspaces
Documentation
use canic_installer::release_set::{config_path, configured_release_roles, workspace_root};
use std::path::PathBuf;

fn main() {
    if let Err(err) = run() {
        eprintln!("{err}");
        std::process::exit(1);
    }
}

// Print the configured ordinary release roles for the root-owning subnet.
fn run() -> Result<(), Box<dyn std::error::Error>> {
    let workspace_root = workspace_root()?;
    let config_path = std::env::args_os()
        .nth(1)
        .map_or_else(|| config_path(&workspace_root), PathBuf::from);

    for role in configured_release_roles(&config_path)? {
        println!("{role}");
    }

    Ok(())
}