Skip to content

Commit

Permalink
Merge pull request #740 from pavjacko/feat/display_env
Browse files Browse the repository at this point in the history
added env variables debug with -i
  • Loading branch information
pavjacko committed Nov 17, 2021
2 parents c53a846 + bca114b commit 0919493
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rnv/src/core/systemManager/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const _execute = (c, command, opts = {}) => {

const mergedOpts = { ...defaultOpts, ...opts };

const env = opts.env && c.program.info ? Object.keys(opts.env).map(k => `${k}=${opts.env[k]}`).join(' ') : null;

let cleanCommand = command;
let interval;
const intervalTimer = 30000; // 30s
Expand All @@ -70,6 +72,7 @@ const _execute = (c, command, opts = {}) => {
);
}

logMessage = `${env ? `${env} ` : ''}${logMessage}`;
logDebug(`_execute: ${logMessage}`);
const { silent, mono, maxErrorLength, ignoreErrors } = mergedOpts;
const spinner = !silent && !mono && ora({ text: `Executing: ${logMessage}` }).start();
Expand Down

0 comments on commit 0919493

Please sign in to comment.