mirror of
https://github.com/zhigang1992/firebase-tools.git
synced 2026-05-24 17:02:52 +08:00
Try to detect interactive mode using process.stdin.isTTY
This commit is contained in:
@@ -86,6 +86,9 @@ Command.prototype.register = function(client) {
|
||||
};
|
||||
|
||||
Command.prototype._prepare = function(options) {
|
||||
if (!process.stdin.isTTY) {
|
||||
options.nonInteractive = true;
|
||||
}
|
||||
if (utils.getInheritedOption(options, 'debug')) {
|
||||
logger.transports.console.level = 'debug';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user