ForestAdmin/lumber

View on GitHub
services/prompter/abstract-prompter.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class AbstractPrompter {
  constructor(requests) {
    this.requests = requests;
  }

  isOptionRequested(option) {
    if (!option) { return false; }

    return this.requests.includes(option);
  }
}

module.exports = AbstractPrompter;