|
|
@ -1,4 +1,7 @@
|
|
|
|
use utils::{error::{Error, Result}, is_human};
|
|
|
|
use utils::{
|
|
|
|
|
|
|
|
error::{Error, Result},
|
|
|
|
|
|
|
|
is_human,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
use actix_web::{get, http::header, App, HttpRequest, HttpResponse, HttpServer, Responder};
|
|
|
|
use actix_web::{get, http::header, App, HttpRequest, HttpResponse, HttpServer, Responder};
|
|
|
|
use clap::Parser;
|
|
|
|
use clap::Parser;
|
|
|
@ -9,7 +12,7 @@ pub const TATOEBA_API: &str = "https://tatoeba.org/en/api_v0/search";
|
|
|
|
#[command(author, version, about, long_about = None)]
|
|
|
|
#[command(author, version, about, long_about = None)]
|
|
|
|
struct Args {
|
|
|
|
struct Args {
|
|
|
|
/// The port at which to run.
|
|
|
|
/// The port at which to run.
|
|
|
|
#[arg(short, long, default_value_t=3001)]
|
|
|
|
#[arg(short, long, default_value_t = 3001)]
|
|
|
|
port: u16,
|
|
|
|
port: u16,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|