PSStyle
1.0.0
This module creates the `$PSStyle` variable for versions of PowerShell that don't
have it built-in. For compatibility, the variable includes the same nested
properties that `$PSStyle` has in PowerShell 7.2 and higher. However, the features
that use some of those properties are not available in versions of PowerShell
prior to
have it built-in. For compatibility, the variable includes the same nested
properties that `$PSStyle` has in PowerShell 7.2 and higher. However, the features
that use some of those properties are not available in versions of PowerShell
prior to
This module creates the `$PSStyle` variable for versions of PowerShell that don't
have it built-in. For compatibility, the variable includes the same nested
properties that `$PSStyle` has in PowerShell 7.2 and higher. However, the features
that use some of those properties are not available in versions of PowerShell
prior to 7.2.
The purpose is to provide the ANSI string definitions and the `FromRGB()` methods
so that you can use the same `$PSStyle` code in your profile scripts for Windows
PowerShell 5.1 and PowerShell 7.2 and higher.
Trying to import the module in PowerShell 7.2 or higher fails with the following
error:
InvalidOperation: Cannot overwrite variable PSStyle because it is read-only or constant.
Import-Module: Cannot overwrite variable PSStyle because it is read-only or constant.
Show more
have it built-in. For compatibility, the variable includes the same nested
properties that `$PSStyle` has in PowerShell 7.2 and higher. However, the features
that use some of those properties are not available in versions of PowerShell
prior to 7.2.
The purpose is to provide the ANSI string definitions and the `FromRGB()` methods
so that you can use the same `$PSStyle` code in your profile scripts for Windows
PowerShell 5.1 and PowerShell 7.2 and higher.
Trying to import the module in PowerShell 7.2 or higher fails with the following
error:
InvalidOperation: Cannot overwrite variable PSStyle because it is read-only or constant.
Import-Module: Cannot overwrite variable PSStyle because it is read-only or constant.
Minimum PowerShell version
5.1
The owner has unlisted this package.
This could mean that the module is deprecated or shouldn't be used anymore.
Installation Options
Owners
Copyright
(c) 2022 Microsoft. All rights reserved.
Package Details
Author(s)
- sewhee@microsoft.com
Dependencies
This module has no dependencies.
FileList
- PSStyle.nuspec
- PSStyle.Format.ps1xml
- PSStyle.init.ps1
- PSStyle.psd1
- PSStyle.psm1