-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: trap panics in task resolving (#3677)
* fix: trap panics in task resolving * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1072132
commit 9653a49
Showing
41 changed files
with
140 additions
and
233 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# `mise exec` | ||
|
||
- **Usage**: `mise exec [FLAGS] [TOOL@VERSION]... [COMMAND]...` | ||
- **Usage**: `mise exec [FLAGS] [TOOL@VERSION]... [-- COMMAND]...` | ||
- **Aliases**: `x` | ||
- **Source code**: [`src/cli/exec.rs`](https://github.com/jdx/mise/blob/main/src/cli/exec.rs) | ||
|
||
|
@@ -20,7 +20,7 @@ The "--" separates runtimes from the commands to pass along to the subprocess. | |
|
||
Tool(s) to start e.g.: node@20 [email protected] | ||
|
||
### `[COMMAND]...` | ||
### `[-- COMMAND]...` | ||
|
||
Command string to execute (same as --command) | ||
|
||
|
@@ -42,16 +42,12 @@ Directly pipe stdin/stdout/stderr from plugin to user Sets --jobs=1 | |
Examples: | ||
|
||
``` | ||
mise exec node@20 -- node ./app.js # launch app.js using node-20.x | ||
mise x node@20 -- node ./app.js # shorter alias | ||
``` | ||
$ mise exec node@20 -- node ./app.js # launch app.js using node-20.x | ||
$ mise x node@20 -- node ./app.js # shorter alias | ||
``` | ||
# Specify command as a string: | ||
$ mise exec node@20 [email protected] --command "node -v && python -V" | ||
``` | ||
``` | ||
# Run a command in a different directory: | ||
$ mise x -C /path/to/project node@20 -- node ./app.js | ||
``` |
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -31,9 +31,7 @@ Examples: | |
# build node-20.0.0 with node-build and link it into mise | ||
$ node-build 20.0.0 ~/.nodes/20.0.0 | ||
$ mise link [email protected] ~/.nodes/20.0.0 | ||
``` | ||
``` | ||
# have mise use the python version provided by Homebrew | ||
$ brew install node | ||
$ mise link node@brew $(brew --prefix node) | ||
|
Oops, something went wrong.