@@ -122,7 +122,7 @@ function Convert-VersionParamaters
122
122
elseif ( ! $RequiredVersion -and ! $MinimumVersion -and ! $MaximumVersion ) {
123
123
return $null
124
124
}
125
- elseif ( $RequiredVersion -and ! $MinimumVersion -and ! $MaximumVersion ) {
125
+ elseif ( $RequiredVersion -and ! $MinimumVersion -and ! $MaximumVersion ) {
126
126
return " $RequiredVersion " }
127
127
128
128
# now return the appropriate string
@@ -462,7 +462,7 @@ param(
462
462
}
463
463
464
464
# PARAMETER MAP
465
- # add new specifier
465
+ # add new specifier
466
466
$PSBoundParameters [' Type' ] = ' module'
467
467
# Parameter translations
468
468
$verArgs = @ {}
@@ -659,7 +659,7 @@ param(
659
659
}
660
660
661
661
# PARAMETER MAP
662
- # add new specifier
662
+ # add new specifier
663
663
$PSBoundParameters [' Type' ] = ' script'
664
664
# Parameter translations
665
665
$verArgs = @ {}
@@ -1201,11 +1201,11 @@ param(
1201
1201
[ValidateNotNullOrEmpty ()]
1202
1202
[string ]
1203
1203
${Version} ,
1204
-
1204
+
1205
1205
[ValidateNotNullOrEmpty ()]
1206
1206
[string ]
1207
1207
${Author} ,
1208
-
1208
+
1209
1209
[Parameter (Mandatory = $true )]
1210
1210
[ValidateNotNullOrEmpty ()]
1211
1211
[string ]
@@ -1222,39 +1222,39 @@ param(
1222
1222
[ValidateNotNullOrEmpty ()]
1223
1223
[string ]
1224
1224
${Copyright} ,
1225
-
1225
+
1226
1226
[ValidateNotNullOrEmpty ()]
1227
1227
[Object []]
1228
1228
${RequiredModules} ,
1229
-
1229
+
1230
1230
[ValidateNotNullOrEmpty ()]
1231
1231
[string []]
1232
1232
${ExternalModuleDependencies} ,
1233
1233
1234
1234
[ValidateNotNullOrEmpty ()]
1235
1235
[string []]
1236
1236
${RequiredScripts} ,
1237
-
1237
+
1238
1238
[ValidateNotNullOrEmpty ()]
1239
1239
[string []]
1240
1240
${ExternalScriptDependencies} ,
1241
1241
1242
1242
[ValidateNotNullOrEmpty ()]
1243
1243
[string []]
1244
1244
${Tags} ,
1245
-
1245
+
1246
1246
[ValidateNotNullOrEmpty ()]
1247
1247
[Uri ]
1248
1248
${ProjectUri} ,
1249
-
1249
+
1250
1250
[ValidateNotNullOrEmpty ()]
1251
1251
[Uri ]
1252
1252
${LicenseUri} ,
1253
-
1253
+
1254
1254
[ValidateNotNullOrEmpty ()]
1255
1255
[Uri ]
1256
1256
${IconUri} ,
1257
-
1257
+
1258
1258
[string []]
1259
1259
${ReleaseNotes} ,
1260
1260
@@ -1753,7 +1753,7 @@ param(
1753
1753
if ( $PSBoundParameters [' Force' ] ) { $null = $PSBoundParameters.Remove (' Force' ) }
1754
1754
if ( $PSBoundParameters [' AcceptLicense' ] ) { $null = $PSBoundParameters.Remove (' AcceptLicense' ) }
1755
1755
# END PARAMETER MAP
1756
-
1756
+
1757
1757
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand (' Save-PSResource' , [System.Management.Automation.CommandTypes ]::Cmdlet)
1758
1758
$scriptCmd = {& $wrappedCmd @PSBoundParameters }
1759
1759
@@ -2565,11 +2565,11 @@ param(
2565
2565
[ValidateNotNullOrEmpty ()]
2566
2566
[string ]
2567
2567
${Version} ,
2568
-
2568
+
2569
2569
[ValidateNotNullOrEmpty ()]
2570
2570
[string ]
2571
2571
${Author} ,
2572
-
2572
+
2573
2573
[ValidateNotNullOrEmpty ()]
2574
2574
[string ]
2575
2575
${Description} ,
@@ -2585,7 +2585,7 @@ param(
2585
2585
[ValidateNotNullOrEmpty ()]
2586
2586
[string ]
2587
2587
${Copyright} ,
2588
-
2588
+
2589
2589
[ValidateNotNullOrEmpty ()]
2590
2590
[Object []]
2591
2591
${RequiredModules} ,
@@ -2597,27 +2597,27 @@ param(
2597
2597
[ValidateNotNullOrEmpty ()]
2598
2598
[string []]
2599
2599
${RequiredScripts} ,
2600
-
2600
+
2601
2601
[ValidateNotNullOrEmpty ()]
2602
2602
[string []]
2603
2603
${ExternalScriptDependencies} ,
2604
2604
2605
2605
[ValidateNotNullOrEmpty ()]
2606
2606
[string []]
2607
2607
${Tags} ,
2608
-
2608
+
2609
2609
[ValidateNotNullOrEmpty ()]
2610
2610
[Uri ]
2611
2611
${ProjectUri} ,
2612
-
2612
+
2613
2613
[ValidateNotNullOrEmpty ()]
2614
2614
[Uri ]
2615
2615
${LicenseUri} ,
2616
2616
2617
2617
[ValidateNotNullOrEmpty ()]
2618
2618
[Uri ]
2619
2619
${IconUri} ,
2620
-
2620
+
2621
2621
[string []]
2622
2622
${ReleaseNotes} ,
2623
2623
@@ -2694,11 +2694,11 @@ param(
2694
2694
[ValidateNotNullOrEmpty ()]
2695
2695
[string ]
2696
2696
${Version} ,
2697
-
2697
+
2698
2698
[ValidateNotNullOrEmpty ()]
2699
2699
[string ]
2700
2700
${Author} ,
2701
-
2701
+
2702
2702
[ValidateNotNullOrEmpty ()]
2703
2703
[string ]
2704
2704
${Description} ,
@@ -2714,7 +2714,7 @@ param(
2714
2714
[ValidateNotNullOrEmpty ()]
2715
2715
[string ]
2716
2716
${Copyright} ,
2717
-
2717
+
2718
2718
[ValidateNotNullOrEmpty ()]
2719
2719
[Object []]
2720
2720
${RequiredModules} ,
@@ -2726,27 +2726,27 @@ param(
2726
2726
[ValidateNotNullOrEmpty ()]
2727
2727
[string []]
2728
2728
${RequiredScripts} ,
2729
-
2729
+
2730
2730
[ValidateNotNullOrEmpty ()]
2731
2731
[string []]
2732
2732
${ExternalScriptDependencies} ,
2733
2733
2734
2734
[ValidateNotNullOrEmpty ()]
2735
2735
[string []]
2736
2736
${Tags} ,
2737
-
2737
+
2738
2738
[ValidateNotNullOrEmpty ()]
2739
2739
[Uri ]
2740
2740
${ProjectUri} ,
2741
-
2741
+
2742
2742
[ValidateNotNullOrEmpty ()]
2743
2743
[Uri ]
2744
2744
${LicenseUri} ,
2745
2745
2746
2746
[ValidateNotNullOrEmpty ()]
2747
2747
[Uri ]
2748
2748
${IconUri} ,
2749
-
2749
+
2750
2750
[string []]
2751
2751
${ReleaseNotes} ,
2752
2752
@@ -2816,6 +2816,11 @@ param(
2816
2816
#>
2817
2817
}
2818
2818
2819
+ New-Alias - Name fimo - Value Find-Module
2820
+ New-Alias - Name inmo - Value Install-Module
2821
+ New-Alias - Name pumo - Value Publish-Module
2822
+ New-Alias - Name upmo - Value Update-Module
2823
+
2819
2824
$functionsToExport = @ (
2820
2825
" Find-Command" ,
2821
2826
" Find-DscResource" ,
@@ -2843,4 +2848,11 @@ $functionsToExport = @(
2843
2848
" Update-ScriptFileInfo"
2844
2849
)
2845
2850
2846
- export-ModuleMember - Function $functionsToExport
2851
+ $aliasesToExport = @ ('
2852
+ fimo' ,
2853
+ ' inmo' ,
2854
+ ' pumo' ,
2855
+ ' upmo'
2856
+ )
2857
+
2858
+ export-ModuleMember - Function $functionsToExport - Alias $aliasesToExport
0 commit comments