lib

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

mod.rs (464B)


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