temp commit
This commit is contained in:
@@ -9,6 +9,8 @@ use check_api_refs::check_api_refs;
|
||||
use clap::{Parser, Subcommand};
|
||||
use orcx::orcx;
|
||||
|
||||
use crate::orcx::orcxdb;
|
||||
|
||||
#[derive(Parser)]
|
||||
pub struct Args {
|
||||
#[arg(short, long)]
|
||||
@@ -22,7 +24,11 @@ pub enum Commands {
|
||||
CheckApiRefs,
|
||||
Orcx {
|
||||
#[arg(trailing_var_arg = true, num_args = 1..)]
|
||||
orcx_argv: Vec<String>,
|
||||
argv: Vec<String>,
|
||||
},
|
||||
Orcxdb {
|
||||
#[arg(trailing_var_arg = true, num_args = 1..)]
|
||||
argv: Vec<String>,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -35,7 +41,8 @@ fn main() -> io::Result<ExitCode> {
|
||||
let args = Args::parse();
|
||||
match &args.command {
|
||||
Commands::CheckApiRefs => check_api_refs(&args)?,
|
||||
Commands::Orcx { orcx_argv } => orcx(&args, orcx_argv)?,
|
||||
Commands::Orcx { argv } => orcx(&args, argv)?,
|
||||
Commands::Orcxdb { argv } => orcxdb(&args, argv)?,
|
||||
}
|
||||
Ok(if EXIT_OK.load(Ordering::Relaxed) { ExitCode::SUCCESS } else { ExitCode::FAILURE })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user