Skip to content
ConsoleMonster
Cmdlet

New-ConsoleKeyValue

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.KeyValueList

Creates an aligned key/value list.

Syntax

New-ConsoleKeyValue [[-Data] <Object>] [-Markup] [-Name <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Creates an aligned key/value list.

Keys come from a hashtable (use [ordered] to keep order) or from an object's properties. Keys are muted and aligned; values wrap. Values are shown literally unless -Markup is used. In a live dashboard, update pairs with Set-ConsoleValue.

Examples

Authored help example

EXAMPLE 1

New-ConsoleKeyValue -Name 'Name'

Parameters

-Data Object optionalposition: 0
A hashtable or an object whose properties become the pairs.
-Markup SwitchParameter optional
Treat values as markup.
-Name String optional
The live name used by Set-ConsoleValue (default keyvalue).

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.