UNPKG

@aws-amplify/amplify-category-storage

Version:

amplify-cli storage plugin

18 lines 767 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.run = exports.name = void 0; const amplify_prompts_1 = require("@aws-amplify/amplify-prompts"); const constants_1 = require("../../constants"); exports.name = 'remove'; async function run(context) { const { amplify, parameters } = context; const resourceName = parameters.first; return amplify.removeResource(context, constants_1.categoryName, resourceName).catch(async (err) => { amplify_prompts_1.printer.info(err.stack); amplify_prompts_1.printer.error('An error occurred when removing the storage resource'); await context.usageData.emitError(err); process.exitCode = 1; }); } exports.run = run; //# sourceMappingURL=remove.js.map