symfony-style-console
Version:
Use the style and utilities of the Symfony Console in Node.js
17 lines (16 loc) • 367 B
JavaScript
/**
* This is pretty much a dummy class.
*
* It allows for enabling or disabling "interactive" mode to prevent questions.
*/
export default class ConsoleInput {
constructor() {
this.interactive = true;
}
isInteractive() {
return this.interactive;
}
setInteractive(interactive) {
this.interactive = interactive;
}
}