UI for Zipcoin Blue

1234567891011121314151617181920212223242526272829303132333435
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const tslib_1 = require("tslib");
  4. const chalk_1 = require("chalk");
  5. const command_1 = require("@ionic/cli-utils/lib/command");
  6. const errors_1 = require("@ionic/cli-utils/lib/errors");
  7. let StateCommand = class StateCommand extends command_1.Command {
  8. run() {
  9. return tslib_1.__awaiter(this, void 0, void 0, function* () {
  10. const { columnar, indent } = yield Promise.resolve().then(() => require('@ionic/cli-utils/lib/utils/format'));
  11. const data = [
  12. [`${indent(4)}${chalk_1.default.green('ionic cordova platform save')}`, `save existing installed platforms to ${chalk_1.default.bold('config.xml')}`],
  13. [`${indent(4)}${chalk_1.default.green('ionic cordova plugin save')}`, `save existing installed plugins to ${chalk_1.default.bold('config.xml')}`],
  14. [`${indent(4)}${chalk_1.default.green('ionic cordova platform --help')}`, `view help page for managing Cordova platforms`],
  15. [`${indent(4)}${chalk_1.default.green('ionic cordova plugin --help')}`, `view help page for managing Cordova plugins`],
  16. [`${indent(4)}${chalk_1.default.green('ionic cordova prepare')}`, `install platforms and plugins listed in ${chalk_1.default.bold('config.xml')}`],
  17. ];
  18. throw new errors_1.FatalException(`${chalk_1.default.green('ionic state')} has been removed as of CLI 3.0.\n\n` +
  19. `We recommend using Cordova directly to manage Cordova plugins and platforms.\n` +
  20. `The following commands fulfill the old ${chalk_1.default.green('ionic state')} functionality:\n\n` +
  21. `${columnar(data)}\n\n` +
  22. `See ${chalk_1.default.bold('https://cordova.apache.org/docs/en/latest/platform_plugin_versioning_ref/')} for detailed information.\n`);
  23. });
  24. }
  25. };
  26. StateCommand = tslib_1.__decorate([
  27. command_1.CommandMetadata({
  28. name: 'state',
  29. type: 'global',
  30. description: '',
  31. visible: false,
  32. })
  33. ], StateCommand);
  34. exports.StateCommand = StateCommand;