Add {typos,wasm-bindgen,wasmtime}-cli aliases

This commit is contained in:
Taiki Endo
2025-09-07 23:50:01 +09:00
parent 163aa2b38c
commit f6fe689680
4 changed files with 15 additions and 4 deletions

View File

@@ -151,7 +151,8 @@ jobs:
- run: env
- uses: ./
with:
tool: nextest,taplo-cli
# NB: Update alias list in tools/publish.rs and case for aliases in main.sh.
tool: nextest,taplo-cli,typos-cli,wasm-bindgen-cli,wasmtime-cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test bash

View File

@@ -10,6 +10,12 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
- Accept `typos-cli` as an alias for `typos`.
- Accept `wasm-bindgen-cli` as an alias for `wasm-bindgen`.
- Accept `wasmtime-cli` as an alias for `wasmtime`.
- Update `parse-dockerfile@latest` to 0.1.2.
- Update `parse-changelog@latest` to 0.6.13.

View File

@@ -744,10 +744,11 @@ for tool in "${tools[@]}"; do
;;
*)
# Handle aliases.
# NB: Update alias list in tools/publish.rs.
# NB: Update alias list in tools/publish.rs and tool input option in test-alias in .github/workflows/ci.yml.
# TODO(codegen): auto-detect cases where crate name and tool name are different.
case "${tool}" in
nextest) tool=cargo-nextest ;;
taplo-cli) tool=taplo ;;
taplo-cli | typos-cli | wasm-bindgen-cli | wasmtime-cli) tool="${tool%-cli}" ;;
esac
# Use cargo-binstall fallback if tool is not available.

View File

@@ -134,10 +134,13 @@ for tool in tools/codegen/base/*.json; do
tools+=("${tool%.*}")
done
# Aliases.
# NB: Update case for aliases in main.rs.
# NB: Update case for aliases in main.sh and tool input option in test-alias in .github/workflows/ci.yml.
tools+=(
nextest
taplo-cli
typos-cli
wasm-bindgen-cli
wasmtime-cli
)
# Non-manifest-based tools.
tools+=(valgrind)