UNPKG

3.43 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _regenerator = require('babel-runtime/regenerator');
8
9var _regenerator2 = _interopRequireDefault(_regenerator);
10
11var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
12
13var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
14
15var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
16
17var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
18
19var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
20
21var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
22
23var _createClass2 = require('babel-runtime/helpers/createClass');
24
25var _createClass3 = _interopRequireDefault(_createClass2);
26
27var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
28
29var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
30
31var _inherits2 = require('babel-runtime/helpers/inherits');
32
33var _inherits3 = _interopRequireDefault(_inherits2);
34
35var _cliEngineCommand = require('cli-engine-command');
36
37function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38
39var 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
75exports.default = NotFound;
76//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9ub3RfZm91bmQuanMiXSwibmFtZXMiOlsiTm90Rm91bmQiLCJFcnJvciIsImNvbG9yIiwieWVsbG93IiwiY29uZmlnIiwiYXJndiIsImNtZCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVBOzs7O0lBRXFCQSxROzs7Ozs7Ozs7Ozs7Ozs7O3NCQUVYLElBQUlDLEtBQUosQ0FBYSxLQUFLQyxLQUFMLENBQVdDLE1BQVgsQ0FBa0IsS0FBS0MsTUFBTCxDQUFZQyxJQUFaLENBQWlCLENBQWpCLENBQWxCLENBQWIsK0RBRUosS0FBS0gsS0FBTCxDQUFXSSxHQUFYLENBQWUsYUFBZixDQUZJLHdDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OztrQkFGV04sUSIsImZpbGUiOiJub3RfZm91bmQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuXG5pbXBvcnQge0Jhc2V9IGZyb20gJ2NsaS1lbmdpbmUtY29tbWFuZCdcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgTm90Rm91bmQgZXh0ZW5kcyBCYXNlIHtcbiAgYXN5bmMgcnVuICgpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoYCR7dGhpcy5jb2xvci55ZWxsb3codGhpcy5jb25maWcuYXJndlsxXSl9IGlzIG5vdCBhIGhlcm9rdSBjb21tYW5kLlxuUGVyaGFwcyB5b3UgbWVhbnQgPz8/P1xuUnVuICR7dGhpcy5jb2xvci5jbWQoJ2hlcm9rdSBoZWxwJyl9IGZvciBhIGxpc3Qgb2YgYXZhaWxhYmxlIGNvbW1hbmRzLmApXG4gIH1cbn1cbiJdfQ==
\No newline at end of file