mirror of https://gitee.com/bigwinds/arangodb
Implement process.stdout.isTTY
This commit is contained in:
parent
b2f39e982d
commit
2f07366b8f
|
@ -164,7 +164,6 @@ var initHelp = function () {
|
||||||
if (typeof window === 'undefined') {
|
if (typeof window === 'undefined') {
|
||||||
// We're in arangosh
|
// We're in arangosh
|
||||||
initHelp();
|
initHelp();
|
||||||
|
|
||||||
// these variables are not defined in the browser context
|
// these variables are not defined in the browser context
|
||||||
if (!(
|
if (!(
|
||||||
global.IS_EXECUTE_SCRIPT ||
|
global.IS_EXECUTE_SCRIPT ||
|
||||||
|
@ -189,10 +188,12 @@ if (typeof window === 'undefined') {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
delete global.IS_EXECUTE_SCRIPT;
|
global.process.stdout.isTTY = true;
|
||||||
delete global.IS_EXECUTE_STRING;
|
|
||||||
delete global.IS_CHECK_SCRIPT;
|
|
||||||
delete global.IS_UNIT_TESTS;
|
|
||||||
delete global.IS_JS_LINT;
|
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
|
delete global.IS_EXECUTE_SCRIPT;
|
||||||
|
delete global.IS_EXECUTE_STRING;
|
||||||
|
delete global.IS_CHECK_SCRIPT;
|
||||||
|
delete global.IS_UNIT_TESTS;
|
||||||
|
delete global.IS_JS_LINT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,5 +67,9 @@
|
||||||
require('@arangodb').checkAvailableVersions();
|
require('@arangodb').checkAvailableVersions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (internal.options().console) {
|
||||||
|
global.process.stdout.isTTY = true;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Reference in New Issue