rustauth-cli 0.2.0

Command-line tools for RustAuth.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::io;

use clap::CommandFactory;

use crate::app::{AppError, Cli, CompletionsArgs};

pub fn run(args: CompletionsArgs) -> Result<(), AppError> {
    let mut command = Cli::command();
    let name = command.get_name().to_owned();
    clap_complete::generate(args.shell, &mut command, name, &mut io::stdout());
    Ok(())
}