mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-04 20:18:55 +01: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),
|
||
|
}
|
||
|
}
|