Cmdlet
New-ConsoleHeaderBar
Creates a header with a title, breadcrumbs, detail and optional elapsed time.
Syntax
New-ConsoleHeaderBar
[-Crumb <String[]>]
[-Detail <Object>]
[-ElapsedSeconds <Double>]
[-HeaderRight <Object>]
[-ShowElapsed]
[-Status <StatusKind>]
[-Subtitle <Object>]
[-Title] <Object>
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Returns a reusable HeaderBar widget without opening a session. Status is a semantic outcome; Detail is the text beside it. HeaderRight supplies independent right-aligned content.
Examples
Example 1
New-ConsoleHeaderBar 'Build' -Subtitle 'Release' -Status Pass -Detail 'Ready' | Show-ConsoleShow a compact build header.
Parameters
- -Crumb String[]
- Breadcrumbs shown before the title.
- -Detail Object
- Current descriptive text.
- -ElapsedSeconds Double
- An explicit elapsed duration; otherwise the rendering session supplies it.
- -HeaderRight Object
- Independent text at the right of the header.
- -ShowElapsed SwitchParameter
- Shows elapsed time in the header.
- -Status StatusKind
- Semantic outcome displayed before the detail.
- Possible values:
Pending,Running,Pass,Fail,Warn,Skip,Info - -Subtitle Object
- Text qualifying the title.
- -Title Object
- The header's title.
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.