send-mail/node_modules/@actions/core/lib/command.d.ts

22 lines
613 B
TypeScript
Raw Normal View History

2020-03-01 05:01:03 +07:00
interface CommandProperties {
2020-07-09 20:48:05 +07:00
[key: string]: any;
2020-03-01 05:01:03 +07:00
}
/**
* Commands
*
* Command Format:
* ::name key=value,key=value::message
*
* Examples:
* ::warning::This is the message
* ::set-env name=MY_VAR::some value
*/
2020-07-09 20:48:05 +07:00
export declare function issueCommand(command: string, properties: CommandProperties, message: any): void;
2020-03-01 05:01:03 +07:00
export declare function issue(name: string, message?: string): void;
2020-07-09 20:48:05 +07:00
/**
* 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;
2020-03-01 05:01:03 +07:00
export {};