lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

mod.rs (327B)


      1 use std::path::Path;
      2 
      3 pub(crate) mod protocol;
      4 
      5 pub(crate) fn run(args: &[String], workspace_root: &Path) -> Result<(), String> {
      6     match args {
      7         [target, mode] if target == "protocol" => protocol::run(mode, workspace_root),
      8         _ => Err("usage: cargo xtask generate protocol --check|--write".to_owned()),
      9     }
     10 }