mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 15:17:47 +00:00
Using def --env instead of def-env (#673)
This commit is contained in:
parent
9d02fb1ef8
commit
06d3095ab1
15 changed files with 28 additions and 28 deletions
|
@ -35,7 +35,7 @@ export-env {
|
|||
] | str join ";")
|
||||
}
|
||||
|
||||
export def-env activate [
|
||||
export def --env activate [
|
||||
--host (-h): string = "x64", # Host architecture, must be x64 or x86 (case insensitive)
|
||||
--target (-t): string = "x64", # Target architecture, must be x64 or x86 (case insensitive)
|
||||
--sdk (-s): string = "latest" # Version of Windows SDK, must be "latest" or a valid version string
|
||||
|
@ -133,7 +133,7 @@ export def-env activate [
|
|||
hide-env MSVS_INCLUDE_PATH
|
||||
}
|
||||
|
||||
export def-env deactivate [] {
|
||||
export def --env deactivate [] {
|
||||
if (($env.MSVS_ROOT | is-empty) or ($env.MSVS_MSVC_ROOT | is-empty)) {
|
||||
print "Either Microsoft Visual Studio or MSVC is valid."
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue