@forge/cli
14.1.0-next.1-experimental-13c2f8d14.1.0-next.21-experimental-554d417
out/command-line/controller/local-storage-controller.js−
out/command-line/controller/local-storage-controller.jsDeleted−52
Index: package/out/command-line/controller/local-storage-controller.js
===================================================================
--- package/out/command-line/controller/local-storage-controller.js
+++ package/out/command-line/controller/local-storage-controller.js
@@ -1,52 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.LocalStorageController = exports.LocalStorageOperationError = void 0;
-const cli_shared_1 = require("@forge/cli-shared");
-class LocalStorageOperationError extends cli_shared_1.UserError {
-}
-exports.LocalStorageOperationError = LocalStorageOperationError;
-class LocalStorageController {
- service;
- view;
- constructor(service, view) {
- this.service = service;
- this.view = view;
- }
- async start() {
- this.view.started(await this.service.start());
- }
- async status() {
- this.view.status(await this.service.status());
- }
- async seed(options) {
- if (!options.kvsPath && !options.sqlPath) {
- this.view.seedHelp();
- return;
- }
- this.view.seedWarning(options);
- const results = await this.service.seed(options);
- this.view.seedResults(results);
- if (results.some((result) => !result.ok)) {
- throw new LocalStorageOperationError(cli_shared_1.Text.localStorage.error.seedFailed);
- }
- }
- async reset(options) {
- const results = await this.service.reset(options);
- this.view.resetResults(results);
- if (results.some((result) => !result.ok)) {
- throw new LocalStorageOperationError(cli_shared_1.Text.localStorage.error.resetFailed);
- }
- }
- async stop() {
- await this.service.stop();
- this.view.stopped();
- }
- async startForTunnel() {
- await this.service.startForTunnel();
- }
- async stopForTunnel() {
- await this.service.stopForTunnel();
- }
-}
-exports.LocalStorageController = LocalStorageController;
-//# sourceMappingURL=local-storage-controller.js.map
\ No newline at end of file