UNPKG

@cto.ai/ops-rc

Version:

💻 CTO.ai Ops - The CLI built for Teams 🚀

15 lines (14 loc) • 573 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isCommand = exports.checkPathOpsYmlExists = void 0; const tslib_1 = require("tslib"); const fs = tslib_1.__importStar(require("fs-extra")); const path = tslib_1.__importStar(require("path")); const opConfig_1 = require("./../constants/opConfig"); exports.checkPathOpsYmlExists = (nameOrPath) => { const pathToOpsYml = path.join(path.resolve(nameOrPath), opConfig_1.OP_FILE); return fs.existsSync(pathToOpsYml); }; exports.isCommand = (op) => { return op.run !== undefined; };