shipflow 0.1.4

A minimalist, git-aware CLI for tracking what you ship
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::io;

use clap::CommandFactory;
use clap_complete::generate;

use crate::cli::Cli;
use crate::error::Result;

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