mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 18:45:06 +08:00
23 lines
574 B
Rust
23 lines
574 B
Rust
|
use structopt::StructOpt;
|
||
|
|
||
|
use milli::subcommand::infos::{self, Opt as InfosOpt};
|
||
|
use milli::subcommand::search::{self, Opt as SearchOpt};
|
||
|
|
||
|
#[cfg(target_os = "linux")]
|
||
|
#[global_allocator]
|
||
|
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||
|
|
||
|
#[derive(Debug, StructOpt)]
|
||
|
#[structopt(name = "milli", about = "The milli project.")]
|
||
|
enum Command {
|
||
|
Infos(InfosOpt),
|
||
|
Search(SearchOpt),
|
||
|
}
|
||
|
|
||
|
fn main() -> anyhow::Result<()> {
|
||
|
match Command::from_args() {
|
||
|
Command::Infos(opt) => infos::run(opt),
|
||
|
Command::Search(opt) => search::run(opt),
|
||
|
}
|
||
|
}
|