Skip to content

Commit 6a269bb

Browse files
v2.33.1
1 parent 1b0be2e commit 6a269bb

17 files changed

+70
-20
lines changed

PSScriptTools.psd1

0 Bytes
Binary file not shown.

PSScriptToolsManual.pdf

106 Bytes
Binary file not shown.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2172,11 +2172,13 @@ If you find this module useful, you might also want to look at my PowerShell too
21722172
+ [Creating and managing custom type extensions](https://github.com/jdhitsolutions/PSTypeExtensionTools)
21732173
+ [Managing scheduled jobs](https://github.com/jdhitsolutions/ScheduledJobTools)
21742174
+ [Running remote commands outside of PowerShell Remoting](https://github.com/jdhitsolutions/PSRemoteOperations).
2175+
+ [Getting memory status and information](https://github.com/jdhitsolutions/MemoryTools)
21752176
+ [Keeping up to date with PowerShell 7.x releases](https://github.com/jdhitsolutions/PSReleaseTools)
21762177
+ [Inventorying your PowerShell script library](https://github.com/jdhitsolutions/PSScriptingInventory)
2178+
+ [A simple command-line task and to-do manager](https://github.com/jdhitsolutions/MyTasks)
21772179

21782180
## Compatibility
21792181

21802182
Where possible these commands have been tested with PowerShell 7, but not every platform. If you encounter problems, have suggestions or other feedback, please post an [issue](https://github.com/jdhitsolutions/PSScriptTools/issues). It is assumed you will __not__ be running these commands on any edition of PowerShell Core or any beta releases of PowerShell 7.
21812183

2182-
Last Updated *2020-11-09 21:23:07Z*
2184+
Last Updated *2020-11-12 18:56:02Z*

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This is the most recent change log history for this module.
44

5+
## v2.33.1
6+
7+
+ Fixed bug in `ConvertTo-WPFGrid` with refresh and timeout values. (Issue #98)
8+
+ Added missing online help links.
9+
+ Added a few related module links in `README.md`.
10+
511
## v2.33.0
612

713
+ Added `Select-Before`,`Select-After`,`Select-Newest` and `Select-Oldest` and their respective aliases of *before*,*after*,*newest*, and *oldest*.

docs/ConvertTo-ASCIIArt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSScriptTools-help.xml
33
Module Name: PSScriptTools
4-
online version:
4+
online version: https://bit.ly/32DadcG
55
schema: 2.0.0
66
---
77

docs/Get-CommandSyntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSScriptTools-help.xml
33
Module Name: PSScriptTools
4-
online version:
4+
online version: https://bit.ly/2H0mgti
55
schema: 2.0.0
66
---
77

@@ -59,7 +59,7 @@ The output will show each PowerShell Provider and the corresponding command synt
5959
### -Name
6060

6161
Enter the name of a PowerShell cmdlet or function.
62-
Ideally it has been loaded into the current PowerShell session.
62+
Ideally, it has been loaded into the current PowerShell session.
6363

6464
```yaml
6565
Type: String

docs/Get-DirectoryInfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSScriptTools-help.xml
33
Module Name: PSScriptTools
4-
online version:
4+
online version: https://bit.ly/2GU4iIK
55
schema: 2.0.0
66
---
77

docs/Get-FileItem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ For more information, see about_CommonParameters (http://go.microsoft.com/fwlink
198198
199199
## INPUTS
200200
201-
### Strings
201+
### String
202202
203203
## OUTPUTS
204204

docs/Get-MyCounter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSScriptTools-help.xml
33
Module Name: PSScriptTools
4-
online version:
4+
online version: https://bit.ly/2JS5NZ1
55
schema: 2.0.0
66
---
77

docs/Out-Copy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSScriptTools-help.xml
33
Module Name: PSScriptTools
4-
online version:
4+
online version: https://bit.ly/2K6oY1D
55
schema: 2.0.0
66
---
77

docs/Select-After.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSScriptTools-help.xml
33
Module Name: PSScriptTools
4-
online version:
4+
online version: http://bit.ly/3phhAAm
55
schema: 2.0.0
66
---
77

docs/Select-Before.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSScriptTools-help.xml
33
Module Name: PSScriptTools
4-
online version:
4+
online version: https://bit.ly/3nkqnjm
55
schema: 2.0.0
66
---
77

docs/Select-Newest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSScriptTools-help.xml
33
Module Name: PSScriptTools
4-
online version:
4+
online version: http://bit.ly/36x3YIG
55
schema: 2.0.0
66
---
77

docs/Select-Oldest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSScriptTools-help.xml
33
Module Name: PSScriptTools
4-
online version:
4+
online version: https://bit.ly/2IyQPqx
55
schema: 2.0.0
66
---
77

docs/Trace-Message.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSScriptTools-help.xml
33
Module Name: PSScriptTools
4-
online version:
4+
online version: https://bit.ly/3nb3b74
55
schema: 2.0.0
66
---
77

en-us/PSScriptTools-help.xml

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,12 @@ Out-File c:\scripts\computername-art.txt</dev:code>
19551955
</dev:remarks>
19561956
</command:example>
19571957
</command:examples>
1958-
<command:relatedLinks />
1958+
<command:relatedLinks>
1959+
<maml:navigationLink>
1960+
<maml:linkText>Online Version:</maml:linkText>
1961+
<maml:uri>https://bit.ly/32DadcG</maml:uri>
1962+
</maml:navigationLink>
1963+
</command:relatedLinks>
19591964
</command:command>
19601965
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
19611966
<command:details>
@@ -4713,7 +4718,7 @@ $3,456.57</dev:code>
47134718
<command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="0" aliases="none">
47144719
<maml:name>Name</maml:name>
47154720
<maml:Description>
4716-
<maml:para>Enter the name of a PowerShell cmdlet or function. Ideally it has been loaded into the current PowerShell session.</maml:para>
4721+
<maml:para>Enter the name of a PowerShell cmdlet or function. Ideally, it has been loaded into the current PowerShell session.</maml:para>
47174722
</maml:Description>
47184723
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
47194724
<dev:type>
@@ -4728,7 +4733,7 @@ $3,456.57</dev:code>
47284733
<command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="0" aliases="none">
47294734
<maml:name>Name</maml:name>
47304735
<maml:Description>
4731-
<maml:para>Enter the name of a PowerShell cmdlet or function. Ideally it has been loaded into the current PowerShell session.</maml:para>
4736+
<maml:para>Enter the name of a PowerShell cmdlet or function. Ideally, it has been loaded into the current PowerShell session.</maml:para>
47324737
</maml:Description>
47334738
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
47344739
<dev:type>
@@ -4796,6 +4801,10 @@ Get-Item -LiteralPath &lt;string[]&gt; [-Filter &lt;string&gt;] [-Include &lt;st
47964801
</command:example>
47974802
</command:examples>
47984803
<command:relatedLinks>
4804+
<maml:navigationLink>
4805+
<maml:linkText>Online Version:</maml:linkText>
4806+
<maml:uri>https://bit.ly/2H0mgti</maml:uri>
4807+
</maml:navigationLink>
47994808
<maml:navigationLink>
48004809
<maml:linkText>Get-Help</maml:linkText>
48014810
<maml:uri></maml:uri>
@@ -4986,6 +4995,10 @@ PostSetup 5 15275</dev:code>
49864995
</command:example>
49874996
</command:examples>
49884997
<command:relatedLinks>
4998+
<maml:navigationLink>
4999+
<maml:linkText>Online Version:</maml:linkText>
5000+
<maml:uri>https://bit.ly/2GU4iIK</maml:uri>
5001+
</maml:navigationLink>
49895002
<maml:navigationLink>
49905003
<maml:linkText>Get-ChildItem</maml:linkText>
49915004
<maml:uri></maml:uri>
@@ -5177,7 +5190,7 @@ PostSetup 5 15275</dev:code>
51775190
<command:inputTypes>
51785191
<command:inputType>
51795192
<dev:type>
5180-
<maml:name>Strings</maml:name>
5193+
<maml:name>String</maml:name>
51815194
</dev:type>
51825195
<maml:description>
51835196
<maml:para></maml:para>
@@ -6392,6 +6405,10 @@ Timestamp Category Counter Value
63926405
</command:example>
63936406
</command:examples>
63946407
<command:relatedLinks>
6408+
<maml:navigationLink>
6409+
<maml:linkText>Online Version:</maml:linkText>
6410+
<maml:uri>https://bit.ly/2JS5NZ1</maml:uri>
6411+
</maml:navigationLink>
63956412
<maml:navigationLink>
63966413
<maml:linkText>Get-Counter</maml:linkText>
63976414
<maml:uri></maml:uri>
@@ -11908,6 +11925,10 @@ Out-Copy -commandonly</dev:code>
1190811925
</command:example>
1190911926
</command:examples>
1191011927
<command:relatedLinks>
11928+
<maml:navigationLink>
11929+
<maml:linkText>Online Version:</maml:linkText>
11930+
<maml:uri>https://bit.ly/2K6oY1D</maml:uri>
11931+
</maml:navigationLink>
1191111932
<maml:navigationLink>
1191211933
<maml:linkText>Out-String</maml:linkText>
1191311934
<maml:uri></maml:uri>
@@ -13254,6 +13275,10 @@ Mode LastWriteTime Length Name
1325413275
</command:example>
1325513276
</command:examples>
1325613277
<command:relatedLinks>
13278+
<maml:navigationLink>
13279+
<maml:linkText>Online Version:</maml:linkText>
13280+
<maml:uri>http://bit.ly/3phhAAm</maml:uri>
13281+
</maml:navigationLink>
1325713282
<maml:navigationLink>
1325813283
<maml:linkText>Select-Before</maml:linkText>
1325913284
<maml:uri></maml:uri>
@@ -13418,6 +13443,10 @@ Mode LastWriteTime Length Name
1341813443
</command:example>
1341913444
</command:examples>
1342013445
<command:relatedLinks>
13446+
<maml:navigationLink>
13447+
<maml:linkText>Online Version:</maml:linkText>
13448+
<maml:uri>https://bit.ly/3nkqnjm</maml:uri>
13449+
</maml:navigationLink>
1342113450
<maml:navigationLink>
1342213451
<maml:linkText>Select-After</maml:linkText>
1342313452
<maml:uri></maml:uri>
@@ -13996,6 +14025,10 @@ Mode LastWriteTime Length Name
1399614025
</command:example>
1399714026
</command:examples>
1399814027
<command:relatedLinks>
14028+
<maml:navigationLink>
14029+
<maml:linkText>Online Version:</maml:linkText>
14030+
<maml:uri>http://bit.ly/36x3YIG</maml:uri>
14031+
</maml:navigationLink>
1399914032
<maml:navigationLink>
1400014033
<maml:linkText>Select-Oldest</maml:linkText>
1400114034
<maml:uri></maml:uri>
@@ -14160,6 +14193,10 @@ oldest 10 -Property starttime
1416014193
</command:example>
1416114194
</command:examples>
1416214195
<command:relatedLinks>
14196+
<maml:navigationLink>
14197+
<maml:linkText>Online Version:</maml:linkText>
14198+
<maml:uri>https://bit.ly/2IyQPqx</maml:uri>
14199+
</maml:navigationLink>
1416314200
<maml:navigationLink>
1416414201
<maml:linkText>Select-Newest</maml:linkText>
1416514202
<maml:uri></maml:uri>
@@ -16066,6 +16103,10 @@ Count Name
1606616103
</command:example>
1606716104
</command:examples>
1606816105
<command:relatedLinks>
16106+
<maml:navigationLink>
16107+
<maml:linkText>Online Version:</maml:linkText>
16108+
<maml:uri>https://bit.ly/3nb3b74</maml:uri>
16109+
</maml:navigationLink>
1606916110
<maml:navigationLink>
1607016111
<maml:linkText>Write-Verbose</maml:linkText>
1607116112
<maml:uri></maml:uri>

functions/ConvertTo-WPFGrid.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Function ConvertTo-WPFGrid {
1515
[Scriptblock]$Scriptblock,
1616

1717
[string]$Title = "ConvertTo-WPFGrid",
18-
[ValidateScript( {$_ -ge 5})]
18+
[ValidateScript({$_ -ge 5})]
1919
[int]$Timeout,
2020

2121
[switch]$Refresh,
@@ -40,8 +40,9 @@ Function ConvertTo-WPFGrid {
4040
Begin {
4141

4242
Write-Verbose "Starting $($MyInvocation.MyCommand)"
43-
44-
if ($Refresh -AND $timeout -le 5) {
43+
if ($Refresh -AND ($Timeout -lt 5)) {
44+
Write-Verbose "Detected a timeout value of $Timeout"
45+
Write-Verbose "Refresh is set to $Refresh"
4546
Throw "You must specify a timeout value in seconds when using -Refresh"
4647
}
4748
#set a flag for the process block

0 commit comments

Comments
 (0)