bbcloud 0.11.1

Bitbucket Cloud CLI — open pull requests, read every comment, write replies, from the shell
Documentation
1
2
3
4
5
6
7
8
9
10
use clap::CommandFactory;
use clap_complete::Shell;

/// Writes a completion script for `shell` to stdout. The command factory is
/// supplied by the caller so this module does not depend on the binary's types.
pub fn generate<C: CommandFactory>(shell: Shell) {
    let mut command = C::command();
    let name = command.get_name().to_string();
    clap_complete::generate(shell, &mut command, name, &mut std::io::stdout());
}