-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Create a config file for cargo aliases, so tool commands aren't so painful to type #21597
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
Merged
+41
−5
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copy this file to `config.toml` to enable several aliases to commonly-used tools. | ||
|
||
[alias] | ||
### Alias for the `build-easefunction-graphs` tool | ||
build-easefunction-graphs = "run --package build-easefunction-graphs --" | ||
|
||
### Aliases for the `build-templated-pages` tool | ||
build-templated-pages = "run --package build-templated-pages --" | ||
|
||
# Checks for missing data | ||
check-missing-templated-pages = "build-templated-pages check-missing" | ||
check-missing-example-metadata = "check-missing-templated-pages examples" | ||
check-missing-feature-docs = "check-missing-templated-pages features" | ||
|
||
# Updates certain templated data | ||
update-templated-pages = "build-templated-pages update" | ||
update-examples-readme = "update-templated-pages examples" | ||
update-feature-docs = "update-templated-pages features" | ||
|
||
### Alias for the `build-wasm-example` tool | ||
build-wasm-example = "run --package build-wasm-example --" | ||
|
||
### Aliases for the `ci` tool | ||
ci = "run --package ci --" | ||
|
||
# Check each file under `tools/ci/src/commands/` to see what each individual command does | ||
ci-bench-check = "ci bench-check" | ||
ci-clippy = "ci clippy" | ||
ci-compile = "ci compile" | ||
ci-compile-check = "ci compile-check" | ||
ci-compile-fail = "ci compile-fail" | ||
ci-doc = "ci doc" | ||
ci-doc-check = "ci doc-check" | ||
ci-doc-test = "ci doc-test" | ||
ci-example-check = "ci example-check" | ||
ci-format = "ci format" | ||
ci-integration-test-check = "ci integration-test-check" | ||
ci-integration-test-clean = "ci integration-test-clean" | ||
ci-integration-test-run = "ci integration-test" | ||
ci-lints = "ci lints" | ||
ci-test = "ci test" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% on whether every single ci command should have its own alias.
On the one hand, this allows them to show up as valid commands in
cargo --list
. This alone makes me want to include them, such that people know they exist without needing to check the source code of the ci tool.On the other, it doesn't save any time compared to, say,
cargo ci doc
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for listing all