mirror of
https://github.com/actions/toolkit
synced 2025-05-10 00:53:10 +00:00
Add docs and wrapper for "echo" command (#411)
* Add docs and wrapper for "echo" command * Update parameter to enabled
This commit is contained in:
parent
3c125ce4e0
commit
05e39f551d
3 changed files with 43 additions and 1 deletions
|
@ -87,6 +87,15 @@ export function setOutput(name: string, value: any): void {
|
|||
issueCommand('set-output', {name}, value)
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables or disables the echoing of commands into stdout for the rest of the step.
|
||||
* Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
|
||||
*
|
||||
*/
|
||||
export function setCommandEcho(enabled: boolean): void {
|
||||
issue('echo', enabled ? 'on' : 'off')
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
// Results
|
||||
//-----------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue