We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d13570d commit 114f99eCopy full SHA for 114f99e
src/cli.js
@@ -1,7 +1,7 @@
1
#!/usr/bin/env node
2
3
const path = require('path');
4
-const {spawnSync} = require('child_process');
+const {execSync, spawnSync} = require('child_process');
5
const program = require('commander');
6
const chalk = require('chalk');
7
const deepAssign = require('deep-assign');
@@ -171,6 +171,11 @@ cliAction.command.forEach(command => {
171
return exitHandler(spawnSync('dopr ', refArgs, cliOptions).status);
172
}
173
174
+ // Command is expected to run in host context!
175
+ if (cliAction.service === '@host') {
176
+ return execSync(command, cliOptions);
177
+ }
178
+
179
// Parse command
180
const cliCommand = command
181
.replace('%action%', action || '')
0 commit comments