ratto 0.3.2

Ratatui-powered terminal primitives for shell dashboards: flicker-free repaints, progress bars, prompts, and portable time tools
1
2
3
4
5
6
7
8
9
10
11
use clap::CommandFactory;

use crate::cli::{Cli, CompletionArgs};
use crate::color::ColorProfile;
use crate::exit::AppResult;

pub fn run(args: CompletionArgs, _profile: ColorProfile) -> AppResult {
    let mut cmd = Cli::command();
    clap_complete::generate(args.shell, &mut cmd, "rat", &mut std::io::stdout());
    Ok(())
}