nicolasmccurdy/final

View on GitHub
lib/runner.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict'
var Command = require('./command')

module.exports = class Runner {
  constructor (commandOrCore, options) {
    if (commandOrCore instanceof Command) {
      this.command = commandOrCore
    } else {
      this.command = new Command(commandOrCore, options)
    }
  }
}