Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add shell completions for Nushell and Elvish #337

Merged
merged 5 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading