1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! Resources to create a completion generator program.

mod exec;
mod new;
mod shell;

pub use shell::Shell;

use std::path::PathBuf;

/// Arguments of a completion generator program.
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct App {
    /// Binary name.
    pub bin: String,

    /// File to write to.
    /// `None` translates to stdout.
    pub output: Option<PathBuf>,

    /// Type of shell.
    pub shell: Shell,
}