|
|
@@ -22,6 +22,7 @@ extern crate byteorder; |
|
|
|
#[macro_use] |
|
|
|
extern crate serde_derive; |
|
|
|
|
|
|
|
|
|
|
|
use clap::{AppSettings, Arg, App, SubCommand}; |
|
|
|
mod commands; |
|
|
|
use self::commands::*; |
|
|
@@ -128,12 +129,12 @@ fn main() { |
|
|
|
let (subcommand, some_options) = cli_options.subcommand(); |
|
|
|
let options = some_options.unwrap(); |
|
|
|
let run_cli = match subcommand { |
|
|
|
// "new" => run_new_cli, |
|
|
|
"new" => run_new_cli, |
|
|
|
"index" => run_index_cli, |
|
|
|
// "serve" => run_serve_cli, |
|
|
|
// "search" => run_search_cli, |
|
|
|
// "merge" => run_merge_cli, |
|
|
|
// "bench" => run_bench_cli, |
|
|
|
"serve" => run_serve_cli, |
|
|
|
"search" => run_search_cli, |
|
|
|
"merge" => run_merge_cli, |
|
|
|
"bench" => run_bench_cli, |
|
|
|
_ => panic!("Subcommand {} is unknown", subcommand) |
|
|
|
}; |
|
|
|
run_cli(options).unwrap(); |
|
|
|