Skip to content

Commit

Permalink
feat: Add nushell completions
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Jan 5, 2025
1 parent bf462da commit 669f450
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ tempfile.workspace = true
tokio = { workspace = true, optional = true }
bon.workspace = true
users.workspace = true
clap_complete_nushell = "4.5.5"

[features]
# Top level features
Expand Down
7 changes: 5 additions & 2 deletions src/commands/completions.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
use clap::{Args, CommandFactory};
use clap_complete::{generate, Shell as CompletionShell};
use clap_complete::generate;
use miette::Result;
use shells::Shells;

use crate::commands::BlueBuildArgs;

use super::BlueBuildCommand;

mod shells;

#[derive(Debug, Clone, Args)]
pub struct CompletionsCommand {
#[arg(value_enum)]
shell: CompletionShell,
shell: Shells,
}

impl BlueBuildCommand for CompletionsCommand {
Expand Down

0 comments on commit 669f450

Please sign in to comment.