mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 23:43:55 +01:00
19 lines
419 B
Rust
19 lines
419 B
Rust
use crate::cli::SendArgs;
|
|
use crate::commands::request;
|
|
use crate::context::CliContext;
|
|
|
|
pub async fn run(
|
|
ctx: &CliContext,
|
|
args: SendArgs,
|
|
environment: Option<&str>,
|
|
verbose: bool,
|
|
) -> i32 {
|
|
match request::send_request_by_id(ctx, &args.request_id, environment, verbose).await {
|
|
Ok(()) => 0,
|
|
Err(error) => {
|
|
eprintln!("Error: {error}");
|
|
1
|
|
}
|
|
}
|
|
}
|