WeihanLi / dotnet-exec

dotnet execute with custom entry point, another dotnet run without project file
Apache License 2.0
43 stars 4 forks source link

Support `--env` option for define custom environment variables #14

Closed WeihanLi closed 6 months ago

WeihanLi commented 6 months ago

Support --env option for define custom environment variables

Usage example:

dotnet-exec '$"Hello {Environment.GetEnvironmentVariable("name")}".Dump()' --env name=world
WeihanLi commented 6 months ago

env directive also can be used

dotnet-exec [env:name=test] '$"Hello {Environment.GetEnvironmentVariable("name")}"'