Skip to content

Commit

Permalink
Update jaykul-formatwrap.ps1
Browse files Browse the repository at this point in the history
new docs
  • Loading branch information
ninmonkey committed Nov 16, 2023
1 parent 6cf0dfe commit 918855c
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions zeroDepend_autoloader/jaykul-formatwrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,46 @@ function Format-WrapJaykul {
Instead of columns, use alternating colors.
.DESCRIPTION
source: https://gist.github.com/Jaykul/79b0f6f0ee44e06be56d2bd298ab084c
# todo: update/extend
.example
Get-Module
πŸ’> Get-Module
| Format-wrapJaykul -RgbColor BrightRed, BrightGreen -padding 0
.example
Get-Content foo.txt
πŸ’> Import-module -PassThru -Name Pansies, ImportExcel, Pester
| Format-WrapJaykul -RgbColor (Get-Gradient 'gray90' 'gray30' -Width 3) -Property {
$_.Name, $_.Version -join ' ' }
.example
πŸ’> Get-Content foo.txt
| Format-wrapJaykul -RgbColor Cyan
.example
Get-Service L*
πŸ’> Import-module -PassThru -Name Pansies, ImportExcel, Pester
| Format-WrapJaykul -RgbColor 'red', 'blue', 'green' -Property {
$_.Name, $_.Version -join ' ' }
.example
# Calculated
πŸ’> Gci
| Format-WrapJaykul -RgbColor 'red', 'blue', 'green' -Property {
$_.Name, $_.Length -join ' = ' }
.example
πŸ’> Get-Service L*
| Format-wrapJaykul -RgbColor 0x999999
.EXAMPLE
πŸ’> gci
| Format-WrapJaykul -RgbColor (Get-Gradient 'gray80' 'gray10' -Width 3)
πŸ’> gci
| Format-WrapJaykul -RgbColor (Get-Gradient 'gray80' 'gray10' -Width 3)
.ForwardHelpTargetName Microsoft.PowerShell.Utility\Format-Wide
.ForwardHelpCategory Cmdlet
#>

[CmdletBinding(HelpUri = 'https://go.microsoft.com/fwlink/?LinkID=2096930')]
param(
[Parameter(Position = 0)]
Expand Down

0 comments on commit 918855c

Please sign in to comment.