"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GitUtils = void 0;
const fs_1 = __importDefault(require("fs"));
const commander_1 = require("commander");
class GitUtils {
    static logErrorIfNotInGitProject() {
        if (!fs_1.default.existsSync('.git')) {
            commander_1.program.error("`.git` folder doesn't exist. You should be in the root of a git project");
            return true;
        }
        return false;
    }
}
exports.GitUtils = GitUtils;
//# sourceMappingURL=git.utils.js.map