oph 0.1.0

OpenHealth CLI - Universal development tool for the OpenHealth team
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use anyhow::Result;
use clap::CommandFactory;
use clap_complete::{generate, Shell};
use std::io;

use crate::Cli;

pub fn run(shell: Shell) -> Result<()> {
    let mut cmd = Cli::command();
    let name = cmd.get_name().to_string();
    generate(shell, &mut cmd, name, &mut io::stdout());
    Ok(())
}