Skip to content

Commit

Permalink
fix(iota): Remove nushell completion support (#4837)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaughterOfMars authored Jan 16, 2025
1 parent 719c561 commit 62a0b7a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
11 changes: 0 additions & 11 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions crates/iota/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ bip32.workspace = true
camino.workspace = true
clap.workspace = true
clap_complete = { version = "4.5", optional = true }
clap_complete_nushell = { version = "4.5", optional = true }
colored.workspace = true
csv.workspace = true
diesel = { workspace = true, optional = true }
Expand Down Expand Up @@ -131,4 +130,4 @@ harness = false
[features]
gas-profiler = ["iota-types/gas-profiler", "iota-execution/gas-profiler"]
indexer = ["dep:diesel", "dep:iota-indexer", "dep:iota-graphql-rpc"]
gen-completions = ["dep:clap_complete", "dep:clap_complete_nushell"]
gen-completions = ["dep:clap_complete"]
4 changes: 0 additions & 4 deletions crates/iota/src/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

use clap::{Command, CommandFactory, Parser, ValueEnum};
use clap_complete::{Generator, Shell, generate, generate_to};
use clap_complete_nushell::Nushell;
use strum::{EnumIter, IntoEnumIterator};

use crate::iota_commands::IotaCommand;
Expand All @@ -14,7 +13,6 @@ pub enum GenShell {
Bash,
Elvish,
Fish,
Nushell,
PowerShell,
Zsh,
}
Expand All @@ -27,7 +25,6 @@ impl Generator for GenShell {
Self::Fish => Shell::Fish.file_name(name),
Self::PowerShell => Shell::PowerShell.file_name(name),
Self::Zsh => Shell::Zsh.file_name(name),
Self::Nushell => Nushell.file_name(name),
}
}

Expand All @@ -38,7 +35,6 @@ impl Generator for GenShell {
Self::Fish => Shell::Fish.generate(cmd, buf),
Self::PowerShell => Shell::PowerShell.generate(cmd, buf),
Self::Zsh => Shell::Zsh.generate(cmd, buf),
Self::Nushell => Nushell.generate(cmd, buf),
}
}
}
Expand Down

0 comments on commit 62a0b7a

Please sign in to comment.