quicksilver-cli
Version:
Cli tool for Quicksilver
27 lines (26 loc) • 1.01 kB
JavaScript
;
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = require("./command");
const GradleUtil = __importStar(require("../util/gradle"));
const ProjectUtil = __importStar(require("../util/project"));
class EmptyCommand extends command_1.Command {
async run() {
await GradleUtil.clean(this.workspace);
}
async validate() {
await super.validate();
await ProjectUtil.validateGradleProject(this.workspace, this.cacheKeyWorkspace);
}
}
EmptyCommand.NAME = "empty";
EmptyCommand.ALIAS = ["e"];
EmptyCommand.FIELDS = [];
EmptyCommand.DESCRIPTION = "Empty dirs named build in all sub projects.";
exports.EmptyCommand = EmptyCommand;