1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | var _regenerator = require('babel-runtime/regenerator');
|
8 |
|
9 | var _regenerator2 = _interopRequireDefault(_regenerator);
|
10 |
|
11 | var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
|
12 |
|
13 | var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
|
14 |
|
15 | var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
|
16 |
|
17 | var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
18 |
|
19 | var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
20 |
|
21 | var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
22 |
|
23 | var _createClass2 = require('babel-runtime/helpers/createClass');
|
24 |
|
25 | var _createClass3 = _interopRequireDefault(_createClass2);
|
26 |
|
27 | var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
28 |
|
29 | var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
30 |
|
31 | var _inherits2 = require('babel-runtime/helpers/inherits');
|
32 |
|
33 | var _inherits3 = _interopRequireDefault(_inherits2);
|
34 |
|
35 | var _cliEngineCommand = require('cli-engine-command');
|
36 |
|
37 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
38 |
|
39 | var NotFound = function (_Base) {
|
40 | (0, _inherits3.default)(NotFound, _Base);
|
41 |
|
42 | function NotFound() {
|
43 | (0, _classCallCheck3.default)(this, NotFound);
|
44 | return (0, _possibleConstructorReturn3.default)(this, (NotFound.__proto__ || (0, _getPrototypeOf2.default)(NotFound)).apply(this, arguments));
|
45 | }
|
46 |
|
47 | (0, _createClass3.default)(NotFound, [{
|
48 | key: 'run',
|
49 | value: function () {
|
50 | var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() {
|
51 | return _regenerator2.default.wrap(function _callee$(_context) {
|
52 | while (1) {
|
53 | switch (_context.prev = _context.next) {
|
54 | case 0:
|
55 | throw new Error(this.color.yellow(this.config.argv[1]) + ' is not a heroku command.\nPerhaps you meant ????\nRun ' + this.color.cmd('heroku help') + ' for a list of available commands.');
|
56 |
|
57 | case 1:
|
58 | case 'end':
|
59 | return _context.stop();
|
60 | }
|
61 | }
|
62 | }, _callee, this);
|
63 | }));
|
64 |
|
65 | function run() {
|
66 | return _ref.apply(this, arguments);
|
67 | }
|
68 |
|
69 | return run;
|
70 | }()
|
71 | }]);
|
72 | return NotFound;
|
73 | }(_cliEngineCommand.Base);
|
74 |
|
75 | exports.default = NotFound;
|
76 |
|
\ | No newline at end of file |