estunnel 1.8.6

Tool for downloading data from elasticsearch cluster.
1
2
3
4
5
6
7
8
9
use crate::cli::{CompletionOpt, Opt};
use crate::common::Result;
use structopt::StructOpt;

pub fn completion(opt: CompletionOpt) -> Result<()> {
    let CompletionOpt { shell } = opt;
    Opt::clap().gen_completions_to(env!("CARGO_PKG_NAME"), shell, &mut std::io::stdout());
    Ok(())
}