All sorts of test scaffolding works now

This commit is contained in:
2025-02-20 18:06:44 +01:00
parent 9d744550c1
commit 9e7648bc72
41 changed files with 1230 additions and 436 deletions

View File

@@ -1,9 +1,9 @@
mod check_api_refs;
mod orcx;
use std::io;
use std::process::ExitCode;
use std::sync::atomic::{AtomicBool, Ordering};
use std::{env, io};
use check_api_refs::check_api_refs;
use clap::{Parser, Subcommand};
@@ -29,6 +29,9 @@ pub enum Commands {
pub static EXIT_OK: AtomicBool = AtomicBool::new(true);
fn main() -> io::Result<ExitCode> {
if let Some(root) = env::var_os("CARGO_WORKSPACE_DIR") {
env::set_current_dir(root)?;
}
let args = Args::parse();
match &args.command {
Commands::CheckApiRefs => check_api_refs(&args)?,