2017-03-10 21:08:04 +00:00
|
|
|
import * as smartshellWrap from './smartshell.wrap';
|
2017-03-10 19:14:40 +00:00
|
|
|
export declare type TExecutor = 'sh' | 'bash';
|
|
|
|
export interface ISmartshellContructorOptions {
|
|
|
|
executor: TExecutor;
|
|
|
|
sourceFilePaths: string[];
|
|
|
|
}
|
|
|
|
export declare class Smartshell {
|
2017-03-10 21:08:04 +00:00
|
|
|
executor: TExecutor;
|
|
|
|
sourceFileArray: string[];
|
2017-03-10 19:14:40 +00:00
|
|
|
constructor(optionsArg: ISmartshellContructorOptions);
|
|
|
|
addSourceFiles(sourceFilePathsArray: string[]): void;
|
|
|
|
cleanSourceFiles(): void;
|
2017-03-10 21:08:04 +00:00
|
|
|
/**
|
|
|
|
* executes silently and returns IExecResult
|
|
|
|
* @param commandArg
|
|
|
|
*/
|
|
|
|
execSilent(commandArg: string): Promise<smartshellWrap.IExecResult>;
|
|
|
|
/**
|
|
|
|
* creates the final sourcing string
|
|
|
|
* @param commandArg
|
|
|
|
*/
|
|
|
|
private createExecString(commandArg);
|
2017-03-10 19:14:40 +00:00
|
|
|
}
|