Skip to content

Commit 198add3

Browse files
2.44.0
1 parent 4f328b4 commit 198add3

File tree

7 files changed

+21
-15
lines changed

7 files changed

+21
-15
lines changed

Archive-ChangeLog.md

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

33
This file contains older change history. It is maintained for reference purposes.
44

5+
## v2.40.0
6+
7+
+ Updated parameter validation for IP address in `Get-WhoIs` to allow addresses with 255 in an octet. [Issue #117](https://github.com/jdhitsolutions/PSScriptTools/issues/117).
8+
+ Updated help files with missing online links.
9+
+ Added command `Convert-HtmlToAnsi` with an alias of `cha`.
10+
+ Modified `Convertto-Markdown` to add a `AsList` parameter. [Issue #114](https://github.com/jdhitsolutions/PSScriptTools/issues/114)
11+
+ Updated `README.md`.
12+
513
## v2.39.0
614

715
+ Updated `Test-WithCulture` to include additional Verbose output.

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# PSScriptTools Contributions
22

3-
I welcome contributions and suggestions for this module. If you have a suggestion or problem, please post an issue. Please do not submit a pull request to fix a bug without first opening an issue as I may already be working on the problem. If you want to add an entirely new command through a pull request, create a new, stand-alone function in the `functions` directory and a markdown help document under the `docs`directory. Use the [Platyps](https://github.com/powershell/platyps) module to create the markdown file. When submitting a pull request, __do not__ update the module manifest or external help file. This module includes a documentation PDF that I need to generate with each new release.
3+
I welcome contributions and suggestions for this module. If you have a suggestion or problem, please post an issue. Please __do not__ submit a pull request to fix a bug without first opening an issue as I may already be working on the problem. If you want to add an entirely new command through a pull request, create a new, stand-alone function in the `functions` directory and a markdown help document under the `docs`directory. Use the [Platyps](https://github.com/powershell/platyps) module to create the markdown file. When submitting a pull request, __do not__ update the module manifest or external help file. This module includes a documentation PDF that I need to generate with each new release.
4+
5+
If you would like to update command documentation, you are welcome to submit a PR on the markdown file. Or, if it is a simple change, post an issue and I'll take care of it.
46

57
If you have any questions about how you can contribute, please post an issue. One area where contributions *would* be welcome is Pester tests.

PSScriptTools.psd1

0 Bytes
Binary file not shown.

PSScriptToolsManual.pdf

-119 KB
Binary file not shown.

README.md

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

33
![PSGallery Version](https://img.shields.io/powershellgallery/v/PSScripttools.png?style=for-the-badge&logo=powershell&label=PowerShell%20Gallery)![PSGallery Downloads](https://img.shields.io/powershellgallery/dt/PSScripttools.png?style=for-the-badge&label=Downloads)
44

5-
## PowerShellGet v3 Beta :spider:
6-
7-
There is a bug with the new cmdlets in the PowerShellGet v3 beta module and this module. You cannot use the beta cmdlets to install or update this module. Use `Install-Module` or `Update-Module` from the current stable release of PowerShellGet.
8-
95
## Abstract
106

117
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 at [Issues](https://github.com/jdhitsolutions/PSScriptTools/issues) section of this module's Github repository. Feedback is greatly appreciated.

changelog.md

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

33
This file contains the most recent change history for the PSScriptTools module.
44

5+
## v2.44.0
6+
7+
+ Updated `Show-ANSISequence` to fix a bug where foreground samples where included when specifying background. [Issue #130](https://github.com/jdhitsolutions/PSScriptTools/issues/130)
8+
+ Updated contributing guidelines.
9+
+ Updated `README.md`.
10+
511
## v2.43.0
612

713
+ Fixed VSCode snippets to run in a PowerShell 7 integrated console. [Issue #124](https://github.com/jdhitsolutions/PSScriptTools/issues/124)
@@ -33,14 +39,6 @@ This file contains the most recent change history for the PSScriptTools module.
3339
+ Updated missing online help links.
3440
+ Updated `README.md`.
3541

36-
## v2.40.0
37-
38-
+ Updated parameter validation for IP address in `Get-WhoIs` to allow addresses with 255 in an octet. [Issue #117](https://github.com/jdhitsolutions/PSScriptTools/issues/117).
39-
+ Updated help files with missing online links.
40-
+ Added command `Convert-HtmlToAnsi` with an alias of `cha`.
41-
+ Modified `Convertto-Markdown` to add a `AsList` parameter. [Issue #114](https://github.com/jdhitsolutions/PSScriptTools/issues/114)
42-
+ Updated `README.md`.
43-
4442
## Archive
4543

4644
If you need to see older change history, look at the [Archive ChangeLog](https://github.com/jdhitsolutions/PSScriptTools/blob/master/Archive-ChangeLog.md) online.

functions/show-ansi.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ Function Show-ANSISequence {
2727
if ($PSCmdlet.parametersetname -eq 'basic') {
2828
$Basic = $True
2929
}
30-
elseif ($PSCmdlet.parametersetname -eq 'foreback') {
31-
if ( (-Not ($PSBoundParameters.ContainsKey('foreground'))) -OR (-Not ($PSBoundParameters.ContainsKey('background')))) {
30+
elseif ($PSCmdlet.ParameterSetName -eq 'foreback') {
31+
Write-Debug "Testing bound parameters"
32+
#9/15/2022 Fixed logic to avoid including Foreground unless specified. Issue #130 JDH
33+
if ( (-Not ($PSBoundParameters.ContainsKey('foreground'))) -AND (-Not ($PSBoundParameters.ContainsKey('background')))) {
3234
#default to foreground Issue # 110
3335
Write-Debug "Setting Foreground as default"
3436
$Foreground = $True

0 commit comments

Comments
 (0)