import { Src, Activity, CtxType, ActivityConfigure } from '@taskfr/core'; import * as execa from 'execa'; import { IPipeContext } from '../core'; /** * shell task config. * * @export * @interface ExecFileTaskConfig * @extends {ActivityConfigure} */ export interface ExecFileTaskConfig extends ActivityConfigure { /** * files * * @type {CtxType} * @memberof ExecFileTaskConfig */ files: CtxType; /** * shell args. * * @type {CtxType} * @memberof ExecFileTaskConfig */ args?: CtxType; /** * shell exec options. * * @type {CtxType} * @memberof ExecFileTaskConfig */ options?: CtxType; /** * allow error or not. * * @type {CtxType} * @memberof ExecFileTaskConfig */ allowError: CtxType; } /** * exec file Task * * @class ExecFileTask * @implements {ITask} */ export declare class ExecFileTask extends Activity { files: Src; args?: string[]; options?: execa.Options; allowError: boolean; context: IPipeContext; onActivityInit(config: ExecFileTaskConfig): Promise; run(): Promise; protected execFile(file: string, args?: string[], options?: execa.Options, allowError?: boolean): Promise; static classAnnations: any; }