@veecode-platform/safira-cli
Version:
Generate a microservice project from your spec.
15 lines (14 loc) • 471 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommandCheck = void 0;
const file_system_utils_1 = require("../utils/file-system-utils");
class CommandCheck {
check(commands) {
for (const command of commands) {
if (!file_system_utils_1.FileSystemUtils.commandExists(command.command)) {
throw new Error(command.errorMessage);
}
}
}
}
exports.CommandCheck = CommandCheck;