Skip to content

Commit

Permalink
feat: Add shell completions for Nushell and Elvish (#337)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
NickLarsenNZ and Techassi authored Nov 20, 2024
1 parent 885b347 commit a60b677
Show file tree
Hide file tree
Showing 16 changed files with 2,477 additions and 32 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ repos:
hooks:
- id: shellcheck
args: ["--severity=info"]
exclude: '^extra/completions/'

- repo: https://github.com/rhysd/actionlint
rev: 62dc61a45fc95efe8c800af7a557ab0b9165d63b # 1.7.1
Expand Down
12 changes: 12 additions & 0 deletions Cargo.lock

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

38 changes: 38 additions & 0 deletions Cargo.nix

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 @@ -23,6 +23,7 @@ bindgen = "0.70.1"
cc = "1.0.83"
clap = { version = "4.5", features = ["derive", "env"] }
clap_complete = "4.5"
clap_complete_nushell = "4.5"
comfy-table = { version = "7.1", features = ["custom_styling"] }
directories = "5.0"
dotenvy = "0.15"
Expand Down
10 changes: 6 additions & 4 deletions docs/modules/stackablectl/partials/commands/completions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ Generate shell completions for this tool
Usage: stackablectl completions [OPTIONS] <COMMAND>
Commands:
bash Generate shell completions for Bash
fish Generate shell completions for Fish
zsh Generate shell completions for ZSH
help Print this message or the help of the given subcommand(s)
bash Generate shell completions for Bash
elvish Generate shell completions for Elvish
fish Generate shell completions for Fish
nushell Generate shell completions for Nushell
zsh Generate shell completions for ZSH
help Print this message or the help of the given subcommand(s)
Options:
-l, --log-level <LOG_LEVEL>
Expand Down
94 changes: 94 additions & 0 deletions extra/completions/_stackablectl

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

Loading

0 comments on commit a60b677

Please sign in to comment.