start integration of Smartshell class

This commit is contained in:
2017-03-08 16:51:02 +01:00
parent 26ed390ba6
commit 10cef8bfa6
12 changed files with 317 additions and 33 deletions

View File

@@ -1,32 +1 @@
import * as plugins from './smartshell.plugins'
export interface IExecResult {
exitCode: number,
consoleOutput: string
}
export let exec = (commandStringArg: string): Promise<IExecResult> => {
let done = plugins.smartq.defer<IExecResult>()
plugins.shelljs.exec(commandStringArg,{async: true}, (code, stdout, stderr) => {
})
return done.promise
}
export let execSilent = (commandStringArg: string) => {
let done = plugins.smartq.defer<IExecResult>()
plugins.shelljs.exec(commandStringArg,{}, () => {
})
return done.promise
}
export let execSync = () => {
}
export let execSyncSilent = () => {
}
export * from './smartshell.wrap'