use structopt::StructOpt;
mod config;
use std::path::PathBuf;

fn main() {
    let args = Commands::from_args();

    // let elastic_config = config::read_config(&args.config_path);

    println!("{:?}", args);
    // println!("{:?}", elastic_config)
}


#[derive(Debug)]
#[derive(StructOpt)]
struct Cli {
    query: String,

    #[structopt(parse(from_os_str))]
    #[structopt(short = "c", 
    long = "config")]
    config_path: Option<PathBuf>
}

#[derive(Debug)]
#[derive(StructOpt)]
enum Commands {
    Search{
        query: String
    },
    Config{
        path: String
    }
}


