From 572df38c93523a8c45b7eb5d4062ea17d716ee0b Mon Sep 17 00:00:00 2001 From: "Travis C. LaGrone" <22419287+travis-c-lagrone@users.noreply.github.com> Date: Tue, 21 May 2019 22:33:27 -0500 Subject: [PATCH] Clarify descriptions for the 'Requires*Directive' snippets --- snippets/PowerShell.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/snippets/PowerShell.json b/snippets/PowerShell.json index b766626452..59ee31c86d 100644 --- a/snippets/PowerShell.json +++ b/snippets/PowerShell.json @@ -1029,51 +1029,51 @@ "RequiresVersionDirective": { "prefix": "require-version", "body": [ - "#Requires -Version ${1:Version}" + "#Requires -Version ${1:MinimumVersion}" ], - "description": "Require a minimum version of PowerShell to run the script." + "description": "Require a minimum version or greater of PowerShell to run the script." }, "RequiresPSSnapinDirective": { "prefix": "require-snapin", "body": [ "#Requires -PSSnapin ${1:Name}" ], - "description": "Require a PowerShell snap-in to run the script." + "description": "Require a specific PowerShell snap-in to run the script." }, "RequiresPSSnapinVersionDirective": { "prefix": "require-snapin-version", "body": [ - "#Requires -PSSnapIn ${1:Name} -Version ${2:Version}" + "#Requires -PSSnapIn ${1:Name} -Version ${2:MinimumVersion}" ], - "description": "Require a PowerShell snap-in of minimum version to run the script." + "description": "Require a specific PowerShell snap-in of minimum version or greater to run the script." }, "RequiresModulesDirective": { "prefix": "require-module", "body": [ "#Requires -Modules ${1:Name}" ], - "description": "Require one or more PowerShell modules to run the script." + "description": "Require one or more specific PowerShell modules to run the script." }, "RequiresModulesVersionDirective": { "prefix": "require-module-version", "body": [ - "#Requires -Modules @{ ModuleName='${1:Name}'; ModuleVersion='${2:Version}' }" + "#Requires -Modules @{ ModuleName='${1:Name}'; ModuleVersion='${2:MinimumVersion}' }" ], - "description": "Require a PowerShell module of minimum version to run the script." + "description": "Require a specific PowerShell module of minimum version or greater to run the script." }, "RequiresModulesRequiredVersionDirective": { "prefix": "require-module-required-version", "body": [ - "#Requires -Modules @{ ModuleName='${1:Name}'; RequiredVersion='${2:Version}' }" + "#Requires -Modules @{ ModuleName='${1:Name}'; RequiredVersion='${2:ExactVersion}' }" ], - "description": "Require a PowerShell module of exact version to run the script." + "description": "Require a specific PowerShell module of exact version to run the script." }, "RequiresPSEditionDirective": { "prefix": "require-edition", "body": [ "#Requires -PSEdition ${1|Core,Desktop|}" ], - "description": "Require a PowerShell edition to run the script." + "description": "Require a specific PowerShell edition to run the script." }, "RequiresShellIdDirective": { "prefix": "require-shell",