github-pages-deploy-action/node_modules/@actions/core/lib/command.d.ts

22 lines
613 B
TypeScript
Raw Normal View History

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