Skip to content

Commit a60b677

Browse files
feat: Add shell completions for Nushell and Elvish (#337)
* feat(stackablectl): nushell completions * feat(stackablectl): elvish completions * chore(xtask): Add gen-all command * chore(stackablectl): update changelog * Apply suggestions from code review Co-authored-by: Techassi <[email protected]> --------- Co-authored-by: Techassi <[email protected]>
1 parent 885b347 commit a60b677

File tree

16 files changed

+2477
-32
lines changed

16 files changed

+2477
-32
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ repos:
4040
hooks:
4141
- id: shellcheck
4242
args: ["--severity=info"]
43+
exclude: '^extra/completions/'
4344

4445
- repo: https://github.com/rhysd/actionlint
4546
rev: 62dc61a45fc95efe8c800af7a557ab0b9165d63b # 1.7.1

Cargo.lock

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.nix

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ bindgen = "0.70.1"
2323
cc = "1.0.83"
2424
clap = { version = "4.5", features = ["derive", "env"] }
2525
clap_complete = "4.5"
26+
clap_complete_nushell = "4.5"
2627
comfy-table = { version = "7.1", features = ["custom_styling"] }
2728
directories = "5.0"
2829
dotenvy = "0.15"

docs/modules/stackablectl/partials/commands/completions.adoc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ Generate shell completions for this tool
66
Usage: stackablectl completions [OPTIONS] <COMMAND>
77
88
Commands:
9-
bash Generate shell completions for Bash
10-
fish Generate shell completions for Fish
11-
zsh Generate shell completions for ZSH
12-
help Print this message or the help of the given subcommand(s)
9+
bash Generate shell completions for Bash
10+
elvish Generate shell completions for Elvish
11+
fish Generate shell completions for Fish
12+
nushell Generate shell completions for Nushell
13+
zsh Generate shell completions for ZSH
14+
help Print this message or the help of the given subcommand(s)
1315
1416
Options:
1517
-l, --log-level <LOG_LEVEL>

extra/completions/_stackablectl

Lines changed: 94 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)