@haechi-labs/henesis-cli
Version:
🚀 Command Line Interface tool to Utilize henesis
29 lines • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const integration_1 = tslib_1.__importDefault(require("../../rpc/integration"));
const errors_1 = require("../../errors");
const base_1 = tslib_1.__importDefault(require("../../common/base"));
class Delete extends base_1.default {
async run() {
const { args } = this.parse(Delete);
if (args.integrationId === undefined) {
this.error(errors_1.MISSING_INTEGRATIONID_ARGS);
}
try {
await integration_1.default.deleteIntegration(args.integrationId);
this.log(`${args.integrationId} has been deleted`);
}
catch (err) {
this.error(err.message);
}
}
}
exports.default = Delete;
Delete.description = 'delete a integration';
Delete.examples = [
`$ henesis integration:delete my-integration-id-xqxz`,
];
Delete.flags = {};
Delete.args = [{ name: 'integrationId' }];
//# sourceMappingURL=delete.js.map