A dotnet tool to run arbitrary commands from a project's "scripts" object
:
acts like a path separator (#131)
foo:*
will match foo:bar
but not foo:bar:baz
foo:*:baz
will match foo:bar:baz
foo:**
will match foo:bar
and foo:bar:baz
DOTNET_R_CHILDPROCESS
which is set to true
when executing a script. Use this to check if you're running inside dotnet r
or not. (#87)Note This version drops support for .NET 5 which is no longer supported, but it will continue to work with .NET 5 SDKs.
dotnet r build test pack
) (#10)dotnet r test:*
will match test:unit
and test:integration
) (#79)System.CommandLine
from 2.0.0-beta3.22114.1 to 2.0.0-beta4.22272.1System.CommandLine.Rendering
from 0.4.0-alpha.22114.1 to 0.4.0-alpha.22272.1Note This version broke conditional script execution (
cmd1 && cmd2
) incmd.exe
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION
environment variable.
-v
alias to enable verbose output.--
^
passed to cmd.exe
dotnet r ...
cmd
on Windows and sh
on Linuxpre
and post
scriptspwsh
scriptShell
global.json setting--script-shell
parameterenv
command to list available environment variables--
to the running script--if-present
parameter