1
Fork 0
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:
WindSoilder 2023-11-20 20:55:35 +08:00 committed by GitHub
parent 9d02fb1ef8
commit 06d3095ab1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 28 additions and 28 deletions

View file

@ -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