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
Copy file name to clipboardExpand all lines: README.md
+40-7
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ The contents of this file and other documentation can be viewed using the `Open-
23
23
+[Console Utilities](#Console-Utilities)
24
24
+[Format Functions](#Format-Functions)
25
25
+[Scripting Tools](#Scripting-Tools)
26
+
+[ANSI Tools](#Ansi-Tools)
26
27
+[Other Module Features](#Other-Module-Features)
27
28
+[Related Modules](#Related-Modules)
28
29
+[Compatibility](#Compatibility)
@@ -1088,7 +1089,7 @@ Get-Process | after (Get-Date).Addminutes(-1) -Property StartTime
1088
1089
1089
1090
This is selecting all processes that started within the last minute.
1090
1091
1091
-
### [Select-Before](docs/Select-Before.md)]
1092
+
### [Select-Before](docs/Select-Before.md)
1092
1093
1093
1094
`Select-Before` is the opposite of `Select-After`.
1094
1095
@@ -1987,9 +1988,9 @@ Mode LastWriteTime Length Name
1987
1988
1988
1989
You will need to manually install the file.
1989
1990
1990
-
## Other Module Features
1991
+
## ANSI Tools
1991
1992
1992
-
From time to time I will include additional items that you might find useful in your PowerShell work. This module includes several custom format files for common objects like services. You can run `Get-Service` and pipe it to the custom table view.
1993
+
This module includes several custom format files for common objects like services. You can run `Get-Service` and pipe it to the custom table view.
1993
1994
1994
1995
```powershell
1995
1996
Get-Service | Format-Table -view ansi
@@ -2069,11 +2070,11 @@ TopContainer
2069
2070
ChildContainer
2070
2071
```
2071
2072
2072
-
The map includes ANSI settings for different file types. You won't see the ANSI value in the output. The module will add a custom table view called `ansi` which you can use to display file results colorized in PowerShell 7.
2073
+
The map includes ANSI settings for different file types. You won't see the ANSI value in the output. The module will add a custom table view called `ansi` which you can use to display colorized file results.
2073
2074
2074
2075

2075
2076
2076
-
The mapping file is user-customizable. Copy the `psansifilemap.json` file from the module's root directory to $HOME. When you import this module, if the file is found, it will be imported and used as `psansifilemap`, otherwise the module's file will be used.
2077
+
The mapping file is user-customizable. Copy the `psansifilemap.json` file from the module's root directory to $HOME. When you import this module, if the file is found, it will be imported and used as `psansifilemap`, otherwise, the module's file will be used.
2077
2078
2078
2079
The file will look like this:
2079
2080
@@ -2127,7 +2128,39 @@ The file will look like this:
2127
2128
]
2128
2129
```
2129
2130
2130
-
You can create or modify file groups. The Pattern value should be a regular expression pattern to match on the filename. Don't forget you will need to escape characters for the JSON format. The Ansi value will be an ANSI escape sequence. You can use `\u001b` for the \``e` character.
2131
+
You can create or modify file groups. The Pattern value should be a regular expression pattern to match the filename. Don't forget you will need to escape characters for the JSON format. The Ansi value will be an ANSI escape sequence. You can use `\u001b` for the \``e` character.
2132
+
2133
+
If you prefer not to edit JSON files, you can use the PSAnsiFileMap commands from the module.
Use this command to modify an existing entry. You need to specify a regular expression pattern to match on the filename and/or an ANSI escape sequence. If the entry description doesn't exist, you will need to specify the regex pattern and the ANSI sequence to add the entry to $PSAnsiFileMap.
Any changes you make to `$PSAnsiFileMap` will only last until you import the module again. To make the change permanent, use [Export-PSAnsiFileMap](docs/Export-PSAnsiFileMap.md). This will create the `psansifilemap.json` file in your `$HOME` directory. When you import the PSSCriptTools module, if this file is found, it will be imported. Otherwise, the default module file will be used.
2160
+
2161
+
## Other Module Features
2162
+
2163
+
From time to time I will include additional items that you might find useful in your PowerShell work.
2131
2164
2132
2165
### PSSpecialChar
2133
2166
@@ -2181,4 +2214,4 @@ If you find this module useful, you might also want to look at my PowerShell too
2181
2214
2182
2215
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.
Copy file name to clipboardExpand all lines: changelog.md
+17-20
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,22 @@
1
1
# Change Log for PSScriptTools
2
2
3
-
This is the most recent change log history for this module.
3
+
This is the most recent change history for this module.
4
+
5
+
## v2.34.0
6
+
7
+
+ Fixed typo bug in `Get-PSScriptTools` that was failing to get command aliases. (Issue #99)
8
+
+ Modified `Get-PSScriptTools` to improve performance. Assuming that all exported functions use standard verbs.
9
+
+ Added `Get-PSAnsiFileMap`.
10
+
+ Added `Set-PSAnsiFileMapEntry`.
11
+
+ Added `Remove-PSAnsiFileMapEntry`.
12
+
+ Added `Export-PSAnsiFileMap`.
13
+
+ Added `Show-ANSISequence`.
14
+
+ Updated `filesystem.ansi.format.ps1xml` to use last matching pattern.
15
+
+ Modified `Show-Tree` to better handle piped-in file and directory objects.
16
+
+ Added an alias `ab` for `Add-Border`.
17
+
+ Added an alias of `nab` for `New-AnsiBar`.
18
+
+ Updated `README.md`.
19
+
+ Help updates.
4
20
5
21
## v2.33.1
6
22
@@ -34,25 +50,6 @@ This is the most recent change log history for this module.
34
50
+ Added a splash header to `Get-PSScriptTools`. The header writes to the host so it isn't part of the command output.
35
51
+ Updated `README.md`.
36
52
37
-
## v2.31.0
38
-
39
-
+ Merged PR from @corbob to fix an issue detecting profiles scripts when the user's Documents location has changed. (Issue #93)
40
-
+ Modified `Convert-HasthtableToCode` to explicitly use `@()` for array elements. This is a continuation of a fix for Issue #91.
41
-
+ Updated `New-PSFormatXML` to process a custom hashtable as a property name and convert the XML property to a scriptblock.
42
-
+ Updated `New-PSFormatXML` so that Wide views are auto-sized by default.
43
-
+ Modified the metadata comment generated by `New-PSFormatXML`.
44
-
+ Modified `New-PSFormatXML` to only display the warning message once when detecting additional objects.
45
-
+ Added `Get-FormatView` with an alias of `gfv` to show defined format views. This command uses a format file, `formatview.format.ps1xml`.
46
-
+ Added `Changelog.md` to `PSScriptToolsManual.pdf`.
47
-
+ Moved older change log information to `Archive-Changelog.md`.
48
-
+ Help and documentation updates.
49
-
50
-
## v2.30.0
51
-
52
-
+ Fixed a bug in `Convert-HashtableToCode` when converting hashtables with nested hashtables. (Issue #91)
53
-
+ Modified `Convert-HashtableToCode` to honor `-Inline` when processing nested hashtables.
54
-
+ Updated help documentation for `Convert-HashtableToCode` to clarify the use of array values in a hashtable.
55
-
56
53
## Archive
57
54
58
55
If you need to see older change history, look at the [Archive ChangeLog](https://github.com/jdhitsolutions/PSScriptTools/blob/master/Archive-ChangeLog.md)
This command will create a character or textbased border around a line of text. You might use this to create a formatted text report or to improve the display of information to the screen.
32
+
This command will create a character or text-based border around a line of text. You might use this to create a formatted text report or to improve the display of information to the screen.
33
33
34
34
## EXAMPLES
35
35
@@ -247,7 +247,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
This command is intended to convert a long PowerShell expression with named parameters into a splatting alternative. The central concept is that you are editing a script file with a lengthy PowerShell expression using a number of parameters and you would like to turn it into splatting code.
22
+
This command is intended to convert a long PowerShell expression with named parameters into a splatting alternative. The central concept is that you are editing a script file with a lengthy PowerShell expression with multiple parameters and you would like to turn it into splatting code.
23
23
24
24
## EXAMPLES
25
25
@@ -61,7 +61,7 @@ For more information, see about_CommonParameters (http://go.microsoft.com/fwlink
When you use Get-WinEvent, the results are objects you can work with in PowerShell. However, often times there is additional information that is part of the eventlog record, such as replacement strings, that are used to construct a message. This additional information is not readily exposed.
23
-
You can use this command to convert results of a Get-WinEvent command into a PowerShell custom object with additional information. For best results you, should pipe the same event IDs to this command.
23
+
You can use this command to convert the results of a Get-WinEvent command into a PowerShell custom object with additional information. For best results, you should pipe the same event IDs to this command.
24
24
25
25
Note that not every event record exposes data that is compatible with this command. For those types of event log records, you will see a RawProperties property with most likely an array of strings.
26
26
Use the Message property for more information.
@@ -191,7 +191,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
Use this command to convert a hashtable into its text or string equivalent. It is assumed that any array values contain items of the same type. This command is not has not been tested with large or complex hashtables, so you might need to manually edit the output to meet your tastes or requirements.
31
+
Use this command to convert a hashtable into its text or string equivalent. It is assumed that any array values contain items of the same type. This command has not been tested with large or complex hashtables, so you might need to manually edit the output to meet your tastes or requirements.
32
32
33
33
## EXAMPLES
34
34
@@ -60,7 +60,7 @@ Create an inline string version of the hashtable.
60
60
61
61
### -Hashtable
62
62
63
-
A hashtable to convert. In can be standard or ordered hashtable.
63
+
A hashtable to convert. It can be standard or ordered hashtable.
0 commit comments