-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
56 additions
and
23 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "rta" | ||
version = "0.4.1" | ||
version = "0.5.0" | ||
edition = "2021" | ||
rust-version = "1.75" | ||
|
||
|
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 |
---|---|---|
|
@@ -119,6 +119,22 @@ Runs [ShellCheck](https://shellcheck.net) version 0.9.0 with the arguments | |
rta [email protected] --color=always myscript.sh | ||
``` | ||
|
||
#### Use globally installed applications | ||
|
||
If your system already has certain apps installed, _run-that-app_ can use them. | ||
Consider this `.tool-versions` file: | ||
|
||
``` | ||
go system 1.21.3 | ||
``` | ||
|
||
If your computer has Go installed, _run-that-app_ would try to run it. Only if | ||
that fails would it install and run Go version 1.21.3. | ||
|
||
_Run-that-app_ considers restrictions declared by your code base. If your | ||
codebase has a file `go.mod` containing `go 1.21` and the externally installed | ||
Go version is older, _run-that-app_ would not use the external version. | ||
|
||
#### Ignore unavailable applications | ||
|
||
ShellCheck is just a linter. If it isn't available on a particular platform, the | ||
|
@@ -142,7 +158,7 @@ rta --available alphavet && go vet "-vettool=$(rta --which alphavet)" ./... | |
Here is a template for installing and using run-that-app in a `Makefile`: | ||
|
||
```make | ||
RTA_VERSION = 0.4.1 | ||
RTA_VERSION = 0.5.0 | ||
|
||
# an example Make target that uses run-that-app | ||
test: tools/rta@${RTA_VERSION} | ||
|
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