UNPKG

@cto.ai/ops

Version:

💻 CTO.ai - The CLI built for Teams 🚀

25 lines (24 loc) • 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getEndpointFromOpType = exports.SDK2_DAEMON_ENTRYPOINT = exports.SDK2 = exports.WORKFLOW_ENDPOINT = exports.COMMAND_ENDPOINT = exports.PIPELINE_TYPE = exports.SERVICE_TYPE = exports.JOB_TYPE = exports.GLUECODE_TYPE = exports.COMMAND_TYPE = exports.WORKFLOW_TYPE = exports.LOCAL = exports.PRIVATE = exports.PUBLIC = exports.COMMAND = exports.PIPELINE = exports.WORKFLOW = exports.OP_FILE = void 0; exports.OP_FILE = 'ops.yml'; exports.WORKFLOW = 'workflow'; exports.PIPELINE = 'pipeline'; exports.COMMAND = 'command'; exports.PUBLIC = 'Public 🌎'; exports.PRIVATE = 'Private 🔑'; exports.LOCAL = 'Local 💻'; exports.WORKFLOW_TYPE = 'workflow'; exports.COMMAND_TYPE = 'command'; exports.GLUECODE_TYPE = 'glue_code'; exports.JOB_TYPE = 'job'; exports.SERVICE_TYPE = 'service'; exports.PIPELINE_TYPE = 'pipeline'; exports.COMMAND_ENDPOINT = 'ops'; exports.WORKFLOW_ENDPOINT = 'workflows'; exports.SDK2 = '2'; exports.SDK2_DAEMON_ENTRYPOINT = '/bin/sdk-daemon'; const getEndpointFromOpType = (opType) => { return opType === exports.WORKFLOW ? exports.WORKFLOW_ENDPOINT : exports.COMMAND_ENDPOINT; }; exports.getEndpointFromOpType = getEndpointFromOpType;