|
|
@ -24,15 +24,14 @@ enum Command {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
fn main() {
|
|
|
|
let opts = XtaskOptions::parse();
|
|
|
|
let XtaskOptions { command } = Parser::parse();
|
|
|
|
|
|
|
|
|
|
|
|
use Command::*;
|
|
|
|
let ret = match command {
|
|
|
|
let ret = match opts.command {
|
|
|
|
Command::Codegen(opts) => codegen::codegen(opts),
|
|
|
|
Codegen(opts) => codegen::codegen(opts),
|
|
|
|
Command::Docs => docs::docs(),
|
|
|
|
Docs => docs::docs(),
|
|
|
|
Command::BuildIntegrationTest(opts) => build_test::build_test(opts),
|
|
|
|
BuildIntegrationTest(opts) => build_test::build_test(opts),
|
|
|
|
Command::BuildIntegrationTestEbpf(opts) => build_ebpf::build_ebpf(opts),
|
|
|
|
BuildIntegrationTestEbpf(opts) => build_ebpf::build_ebpf(opts),
|
|
|
|
Command::IntegrationTest(opts) => run::run(opts),
|
|
|
|
IntegrationTest(opts) => run::run(opts),
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if let Err(e) = ret {
|
|
|
|
if let Err(e) = ret {
|
|
|
|