reactive_graph/shared/completions/
commands.rs

1use crate::shared::completions::args::ShellArgument;
2use crate::shared::completions::args::ShellCompletionsActionArgs;
3use clap::Subcommand;
4
5#[derive(Subcommand, Debug)]
6pub enum ShellCompletionsCommands {
7    /// Prints or installs Shell completions.
8    ShellCompletions(ShellCompletionsActionArgs),
9}
10
11#[derive(Subcommand, Debug)]
12pub enum ShellCompletionsActionCommands {
13    /// Prints the shell completions to stdout.
14    Print(ShellArgument),
15
16    /// Installs the shell completions.
17    #[cfg(target_os = "linux")]
18    Install(ShellArgument),
19}