You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module contains a collection of functions, variables and format files that you can use to enhance your PowerShell scripting work. Or get more done from a PowerShell prompt with less typing. Most of the commands are designed to work cross-platform.
6
-
7
-
## Current Release
5
+
This module contains a collection of functions, variables and format files that you can use to enhance your PowerShell scripting work. Or get more done from a PowerShell prompt with less typing. Most of the commands are designed to work cross-platform. Please post any questions, problems or feedback in [Issues](https://github.com/jdhitsolutions/PSScriptTools/issues). Any input is greatly appreciated.
6
+
7
+
## Table of Contents
8
+
9
+
+[Installation](#Installation)
10
+
+[GeneralTools](#General%20Tools)
11
+
+[File Tools](#File%20Tools)
12
+
+[ToDo](#ToDo)
13
+
+[Graphical Tools](#Graphical%20Tools)
14
+
+[HashTable Tools](#HashTable%20Tools)
15
+
+[Select Functions](#Select%20Functions)
16
+
+[Time Functions](#Time%20Functions)
17
+
+[Console Utilities](#Console%20Utilities)
18
+
+[Format-Functions](#Format-Functions)
19
+
+[Scripting Tools](#Scripting%20Tools)
20
+
+[Other](#Other)
21
+
+[Related Modules](#Related%20Modules)
22
+
+[Compatibility](#Compatibility)
23
+
24
+
## Installation
8
25
9
26
You can get the current release from this repository or install this the PowerShell Gallery:
10
27
@@ -18,14 +35,17 @@ or in PowerShell 7:
18
35
Install-Module PSScriptTools [-scope CurrentUser]
19
36
```
20
37
21
-
Starting in v2.2.0, the module was restructured to better support `Desktop` and `Core` editions. But starting with version 2.13.0, the module design has reverted. All commands will be exported. Anything that is platform specific should be handled on a per command basis. It is assumed you will be running this module in Windows PowerShell 5.1 or PowerShell 7.
38
+
> Starting in v2.2.0, the module was restructured to better support `Desktop` and `Core` editions. But starting with version 2.13.0, the module design has reverted. All commands will be exported. Anything that is platform specific should be handled on a per command basis. It is assumed you will be running this module in Windows PowerShell 5.1 or PowerShell 7.
39
+
40
+
### Uninstall the Module
41
+
42
+
To remove the module from your system you can uninstall it.
22
43
23
44
```powershell
45
+
Get-Module PSScriptTools | Remove-Module
24
46
Uninstall-Module PSScriptTools -allversions
25
47
```
26
48
27
-
Please post any questions, problems or feedback in [Issues](https://github.com/jdhitsolutions/PSScriptTools/issues). Any input is greatly appreciated.
@@ -614,61 +634,6 @@ The comment will be inserted at the current cursor location.
614
634
615
635
In VS Code, access the command palette (Ctrl+Shift+P) and then `PowerShell: Show Additional Commands from PowerShell Modules`. Select `Insert ToDo` from the list and you'll get the same input box. Note that this will only work for PowerShell files.
616
636
617
-
## [Test-Expression](docs/Test-Expression.md)
618
-
619
-
The primary command can be used to test a PowerShell expression or scriptblock for a specified number of times and calculate the average runtime, in milliseconds, over all the tests.
620
-
621
-
### Why
622
-
623
-
When you run a single test with `Measure-Command` the result might be affected by any number of factors. Likewise, running multiple tests may also be influenced by things such as caching. The goal in this module is to provide a test framework where you can run a test repeatedly with either a static or random interval between each test. The results are aggregated and analyzed. Hopefully, this will provide a more meaningful or realistic result.
624
-
625
-
### Examples
626
-
627
-
The output will also show the median and trimmed values as well as some metadata about the current PowerShell session.
The primary command can be used to test a PowerShell expression or scriptblock for a specified number of times and calculate the average runtime, in milliseconds, over all the tests.
1216
+
1217
+
#### Why
1218
+
1219
+
When you run a single test with `Measure-Command` the result might be affected by any number of factors. Likewise, running multiple tests may also be influenced by things such as caching. The goal in this module is to provide a test framework where you can run a test repeatedly with either a static or random interval between each test. The results are aggregated and analyzed. Hopefully, this will provide a more meaningful or realistic result.
1220
+
1221
+
#### Examples
1222
+
1223
+
The output will also show the median and trimmed values as well as some metadata about the current PowerShell session.
For very long running tests, you can run them as a background job.
1259
+
1260
+
#### Graphical Testing
1261
+
1262
+
The module also includes a graphical command called `Test-ExpressionForm`. This is intended to serve as both an entry and results form.
1263
+
1264
+

1265
+
1266
+
When you quit the form the last result will be written to the pipeline including all metadata, the scriptblock and any arguments.
1267
+
1248
1268
### [Copy-HelpExample](docs/Copy-HelpExample.md)
1249
1269
1250
1270
This command is designed to make it (slightly) easier to copy code snippets from help examples. Specify the name of a function or cmdlet, presumably one with documented help examples, and you will be offered a selection of code snippets to copy to the clipboard. Code snippets have been trimmed of blank lines, most prompts, and comments. Many examples include output. You will have to manually remove what you don't want after pasting.
0 commit comments