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

chore: added shellcheck for bash completion file #176

Merged
merged 1 commit into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all 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 cli/assets/completions/usage.bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ _usage() {

# shellcheck disable=SC2207
COMPREPLY=( $(usage complete-word --shell bash -s "${_usage_spec_usage}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) )
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
unset COMPREPLY
fi
Expand Down
1 change: 1 addition & 0 deletions lib/src/complete/bash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ __USAGE_EOF__"#,
r#"
# shellcheck disable=SC2207
COMPREPLY=( $(usage complete-word --shell bash -s "${{{spec_variable}}}" --cword="$COMP_CWORD" -- "${{COMP_WORDS[@]}}" ) )
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
unset COMPREPLY
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ _mycli() {

# shellcheck disable=SC2207
COMPREPLY=( $(usage complete-word --shell bash -s "${_usage_spec_mycli_1_2_3}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) )
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
unset COMPREPLY
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ __USAGE_EOF__

# shellcheck disable=SC2207
COMPREPLY=( $(usage complete-word --shell bash -s "${_usage_spec_mycli}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) )
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
unset COMPREPLY
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ _mycli() {

# shellcheck disable=SC2207
COMPREPLY=( $(usage complete-word --shell bash -s "${_usage_spec_mycli}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) )
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
unset COMPREPLY
fi
Expand Down
44 changes: 35 additions & 9 deletions mise.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
[tools]
actionlint = "1.7.4"
cargo-binstall = "1.10.8"
"cargo:cargo-edit" = "0.13.0"
"cargo:cargo-insta" = "1.41.1"
"cargo:cargo-release" = "0.25.12"
"cargo:git-cliff" = "2.6.1"
gh = "2.60.1"
"npm:prettier" = "3.3.3"
[tools.actionlint]
version = "1.7.4"

[tools.cargo-binstall]
version = "1.10.8"

[tools.cargo-binstall.checksums]
cargo-binstall-macos-aarch64 = "sha256:c30a499060745f0c4435a446253fc676838cff0a18d2dd555fcf10399176b1bf"

[tools."cargo:cargo-edit"]
version = "0.13.0"

[tools."cargo:cargo-insta"]
version = "1.41.1"

[tools."cargo:cargo-release"]
version = "0.25.12"

[tools."cargo:git-cliff"]
version = "2.6.1"

[tools.gh]
version = "2.60.1"

[tools.gh.checksums]
"gh_2.60.1_macOS_arm64.zip" = "sha256:1930a3db9a2d1c420e476d06f3d4a8f02db8472d2630a1099968c3b82f231f1f"

[tools."npm:prettier"]
version = "3.3.3"

[tools.shellcheck]
version = "0.10.0"

[tools.shellcheck.checksums]
shellcheck-macos-aarch64 = "sha256:b9e420df8c78ec7d261d66277d5767cbd4cf6da4e4a9f8b02ea4811cd4cc1109"
3 changes: 3 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ gh = "latest"
"cargo:cargo-release" = "latest"
"cargo:git-cliff" = "latest"
"npm:prettier" = "latest"
shellcheck = "latest"

[tasks.autofix]
depends = ["render", "lint-fix", "snapshots"]
Expand Down Expand Up @@ -60,6 +61,8 @@ run = "prettier -c ."
run = 'cargo clippy --all --all-features -- -D warnings'
[tasks."lint:fmt"]
run = 'cargo fmt --all -- --check'
[tasks."lint:shellcheck"]
run = 'shellcheck cli/assets/completions/*.bash'

[tasks.lint-fix]
run = [
Expand Down