GSI - Employe Self Service Mobile
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
792 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.command = void 0;
const clc = require("colorette");
const command_1 = require("../command");
const requireConfig_1 = require("../requireConfig");
const utils = require("../utils");
exports.command = new command_1.Command("target:clear <type> <target>")
.description("clear all resources from a named resource target")
.before(requireConfig_1.requireConfig)
.action((type, name, options) => {
const existed = options.rc.clearTarget(options.project, type, name);
if (existed) {
utils.logSuccess(`Cleared ${type} target ${clc.bold(name)}`);
}
else {
utils.logWarning(`No action taken. No ${type} target found named ${clc.bold(name)}`);
}
return existed;
});