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

29 lines
880 B
TypeScript
Raw Normal View History

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