test
This commit is contained in:
parent
f33fabc7ad
commit
f20ffb1649
1 changed files with 8 additions and 4 deletions
|
|
@ -15,12 +15,15 @@ class Shell extends Command {
|
|||
shell.write(' && $item');
|
||||
}
|
||||
|
||||
if(data.setMessage == null) {
|
||||
var process = await ProcessExecutor.start(shell, logHandler: Application.logWithType);
|
||||
if (data.setMessage == null) {
|
||||
var process = await ProcessExecutor.start(shell,
|
||||
logHandler: Application.logWithType);
|
||||
return await completeProcess(process, command);
|
||||
} else {
|
||||
var process = await ProcessExecutor.run(shell, logHandler: Application.logWithType);
|
||||
var process =
|
||||
await ProcessExecutor.run(shell, logHandler: Application.logWithType);
|
||||
var str = process.stdout.toString();
|
||||
print('====================> $str');
|
||||
var length = str.length;
|
||||
str = str.substring(0, length - 1);
|
||||
await setProperty(data.setMessage!, str);
|
||||
|
|
@ -40,7 +43,8 @@ class ShellFile extends Command {
|
|||
} else {
|
||||
shell.writeln('source $path');
|
||||
}
|
||||
var process = await ProcessExecutor.start(shell, logHandler: Application.logWithType);
|
||||
var process =
|
||||
await ProcessExecutor.start(shell, logHandler: Application.logWithType);
|
||||
|
||||
return await completeProcess(process, command);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue