Version

0.0.2

Author

Ironman Software, LLC

Tags

app

Created

08/26/2024

PowerShell App Tools

A module for working with PowerShell Apps.

Commands

New-UDCenter

Centers content in an App.

New-UDCenter -Content {
    New-UDButton -Text 'Centered Button'
}

New-UDRight

Right aligns content in an App.

New-UDRight -Content {
    New-UDButton -Text 'Right Aligned Button'
}

New-UDConfirm

Prompts the user to confirm an action.

if(New-UDConfirm -Text "Do you want to delete this item?") {
    # Delete the item
}

New-UDLineBreak

Adds a line break to the content.

New-UDTypography -Text 'Line 1'
New-UDLineBreak
New-UDTypography -Text 'Line 2'

Show-UDEventData

Displays the event data for a component.

New-UDButton -Text 'Show Event Data' -OnClick {
    Show-UDEventData
}

Reset-UDPage

Refreshes the current page.

New-UDButton -Text 'Reset Page' -OnClick {
    Reset-UDPage
}

Show-UDObject

Displays an object as JSON.

$Object = @{
    Name = 'Adam'
    Age = 30
}

Show-UDObject -Object $Object

Get-UDCache

Lists all items in $Cache: scope.

$CacheItems = Get-UDCache
Show-UDObject -Object $InputObject

Show-UDVariable

Displays a variable.

$Variable = 'Hello'
Show-UDVariable -Name "Variable" 

Show-UDThemeColorViewer

Displays the current theme colors.

Show-UDThemeColorViewer

ConvertTo-UDJson

Converts an object to JSON.

Installation Options

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet. More info

PS > Install-PSResource Apps.PowerShell.Tools

Install within the PowerShell Universal v5 admin console. More Info

PowerShell Universal Library

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies.

Download the raw nupkg file