Files
labeler/node_modules/@actions/core/lib/command.d.ts
T

22 lines
613 B
TypeScript
Raw Normal View History

2019-08-08 10:10:17 -04:00
interface CommandProperties {
2020-09-08 13:25:36 -04:00
[key: string]: any;
2019-08-08 10:10:17 -04:00
}
/**
* Commands
*
* Command Format:
2020-09-08 13:25:36 -04:00
* ::name key=value,key=value::message
2019-08-08 10:10:17 -04:00
*
* Examples:
2020-09-08 13:25:36 -04:00
* ::warning::This is the message
* ::set-env name=MY_VAR::some value
2019-08-08 10:10:17 -04:00
*/
2020-09-08 13:25:36 -04:00
export declare function issueCommand(command: string, properties: CommandProperties, message: any): void;
export declare function issue(name: string, message?: string): void;
/**
* Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string
*/
export declare function toCommandValue(input: any): string;
2019-08-08 10:10:17 -04:00
export {};