add exec method to smartshell class

This commit is contained in:
2017-03-11 02:36:27 +01:00
parent 4779c7107f
commit a59897ae6d
3 changed files with 25 additions and 1 deletions

View File

@ -38,6 +38,15 @@ export class Smartshell {
return await smartshellWrap.execSilent(commandArg)
}
/**
* executes and returns IExecResult
* @param commandArg
*/
async exec (commandArg: string) {
let execCommand = this.createExecString(commandArg)
return await smartshellWrap.exec(commandArg)
}
/**
* creates the final sourcing string
* @param commandArg