mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-06-18 15:58:09 +00:00
Add balena envs '-j' option to produce JSON output
Change-type: minor Signed-off-by: Paulo Castro <paulo@balena.io>
This commit is contained in:
@ -21,9 +21,10 @@ import * as nock from 'nock';
|
||||
import * as path from 'path';
|
||||
|
||||
import * as balenaCLI from '../build/app';
|
||||
import { configureBluebird } from '../build/app-common';
|
||||
import { configureBluebird, setMaxListeners } from '../build/app-common';
|
||||
|
||||
configureBluebird();
|
||||
setMaxListeners(15); // it appears that using nock adds some listeners
|
||||
|
||||
export const runCommand = async (cmd: string) => {
|
||||
const preArgs = [process.argv[0], path.join(process.cwd(), 'bin', 'balena')];
|
||||
|
Reference in New Issue
Block a user