< Back
Write-AutonanceMessage
Post
NAME Write-AutonanceMessage
SYNOPSIS
Write an Autonance task message.
SYNTAX
Write-AutonanceMessage [-Message] <String> [<CommonParameters>]
DESCRIPTION
This function must be used in a Autonance extension task to show the current
status messages in a nice formatted output. The Autonance module will take
care about the indent and message color.
PARAMETERS
-Message <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author : Claudio Spizzi
License : MIT License
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>
Register-AutonanceExtension -Name 'ShowMessage' -ScriptBlock {
Write-AutonanceMessage -Message 'Hello, World!'
}
Uses the Write-AutonanceMessage function to show a nice formatted output
message within a custom Autonance task.
RELATED LINKS
https://github.com/claudiospizzi/Autonance
SYNOPSIS
Write an Autonance task message.
SYNTAX
Write-AutonanceMessage [-Message] <String> [<CommonParameters>]
DESCRIPTION
This function must be used in a Autonance extension task to show the current
status messages in a nice formatted output. The Autonance module will take
care about the indent and message color.
PARAMETERS
-Message <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author : Claudio Spizzi
License : MIT License
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>
Register-AutonanceExtension -Name 'ShowMessage' -ScriptBlock {
Write-AutonanceMessage -Message 'Hello, World!'
}
Uses the Write-AutonanceMessage function to show a nice formatted output
message within a custom Autonance task.
RELATED LINKS
https://github.com/claudiospizzi/Autonance