Skip to content

Commit 3b18b81

Browse files
committed
xml updated
1 parent 9325332 commit 3b18b81

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

en-US/PSAptGetUpdate-help.xml

+16-2
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ Get-FolderAge Get-FolderAge returns `LastModifiedDate` for a specified folder(s)
430430
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
431431
<maml:name>NamesOnly</maml:name>
432432
<maml:Description>
433-
<maml:para>{{Fill NamesOnly Description}}</maml:para>
433+
<maml:para>If this switch is specified, command will return only names of modules that can be updated. It can be passed via pipeline to standard Update-Module cmdlet.</maml:para>
434434
</maml:Description>
435435
<dev:type>
436436
<maml:name>SwitchParameter</maml:name>
@@ -480,7 +480,7 @@ Get-FolderAge Get-FolderAge returns `LastModifiedDate` for a specified folder(s)
480480
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
481481
<maml:name>NamesOnly</maml:name>
482482
<maml:Description>
483-
<maml:para>{{Fill NamesOnly Description}}</maml:para>
483+
<maml:para>If this switch is specified, command will return only names of modules that can be updated. It can be passed via pipeline to standard Update-Module cmdlet.</maml:para>
484484
</maml:Description>
485485
<command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
486486
<dev:type>
@@ -537,6 +537,20 @@ Get-FolderAge Get-FolderAge returns `LastModifiedDate` for a specified folder(s)
537537
<maml:para>It will check for all locally installed modules if they can be updated or not. While standard command Update-Module will run for minutes, this command will run for seconds.</maml:para>
538538
</dev:remarks>
539539
</command:example>
540+
<command:example>
541+
<maml:title>-------------------------- Example 4 --------------------------</maml:title>
542+
<dev:code>PS C:\&gt; Update-ModuleFromCache -NamesOnly</dev:code>
543+
<dev:remarks>
544+
<maml:para>This will return you only the list of names of modules that can be updated.</maml:para>
545+
</dev:remarks>
546+
</command:example>
547+
<command:example>
548+
<maml:title>-------------------------- Example 5 --------------------------</maml:title>
549+
<dev:code>PS C:\&gt; Update-ModuleFromCache -NamesOnly | Update-Module</dev:code>
550+
<dev:remarks>
551+
<maml:para>As real updating of modules is not implemented in this POC module, you can pipe list of names of updatable modules to Update-Module command for real update. Take care that some modules might be installed with admin rights.</maml:para>
552+
</dev:remarks>
553+
</command:example>
540554
</command:examples>
541555
<command:relatedLinks>
542556
<maml:navigationLink>

0 commit comments

Comments
 (0)