ember-cli/ember-try

View on GitHub
lib/commands/reset.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

module.exports = {
  name: 'try:reset',
  description: 'Resets dependencies to their committed state. For when things get messy.',
  works: 'insideProject',

  async run() {
    let config = await require('../utils/config')({ project: this.project });
    let ResetTask = require('../tasks/reset');

    let resetTask = new ResetTask({
      ui: this.ui,
      project: this.project,
      config,
    });

    return await resetTask.run();
  },
};