Skip to content

Commit 8b2412b

Browse files
committed
📄 Fix last example
1 parent 430841c commit 8b2412b

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

ModuleFast.psm1

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ function Install-ModuleFast {
102102
Stores an Install Plan for ImportExcel in the $plan variable, then installs it. The later install can be done later, and the $plan objects are serializable to CLIXML/JSON/etc. for storage.
103103
104104
--- RESULT ---
105+
105106
What if: Performing the operation "Install 1 Modules" on target "C:\Users\JGrote\AppData\Local\powershell\Modules". Name ModuleVersion
107+
108+
Name ModuleVersion
106109
---- -------------
107110
ImportExcel 7.8.6
108111
@@ -142,10 +145,24 @@ function Install-ModuleFast {
142145
Module.requires.psd1 Contents:
143146
@{
144147
ImportExcel = 'latest'
148+
'VMware.PowerCLI.Sdk' = '>=12.6.0.19600125'
145149
}
146150
147-
--- Result ---
151+
--- RESULT ---
152+
153+
Name ModuleVersion
154+
---- -------------
155+
ImportExcel 7.8.6
156+
VMware.PowerCLI.Sdk 12.6.0.19600125
157+
VMware.PowerCLI.Sdk.Types 12.6.0.19600125
158+
159+
.EXAMPLE
160+
Install-ModuleFast 'ImportExcel' -CI
161+
Install-ModuleFast -CI
162+
163+
If the -CI switch is specified, ModuleFast will write a lockfile to the current directory indicating all modules that were installed. This lockfile will contain the exact versions of the modules that were installed. If the lockfile is present in the future, ModuleFast will only install the versions specified in the lockfile, which is useful for reproducing CI builds even if newer versions of modules are releases that match the initial specification.
148164
165+
For instance, the above will install the latest version of ImportExcel (7.8.6 as of this writing) but will not install newer while modulefast is in this directory until the lockfile is removed or replaced.
149166
150167
#>
151168

0 commit comments

Comments
 (0)