smartshell/dist/smartshell.classes.smartshell.d.ts

29 lines
880 B
TypeScript
Raw Normal View History

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>;
2017-03-11 01:36:27 +00:00
/**
* executes and returns IExecResult
* @param commandArg
*/
exec(commandArg: string): Promise<smartshellWrap.IExecResult>;
2017-03-10 21:08:04 +00:00
/**
* creates the final sourcing string
* @param commandArg
*/
private createExecString(commandArg);
2017-03-10 19:14:40 +00:00
}