UNPKG

@veecode-platform/safira-cli

Version:

Generate a microservice project from your spec.

19 lines (18 loc) 967 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InsomniaClient = void 0; const tslib_1 = require("tslib"); const file_system_utils_1 = require("../utils/file-system-utils"); const properties = tslib_1.__importStar(require("../properties.json")); const safira_exception_1 = require("../exception/safira-exception"); class InsomniaClient { async loadCli() { const insoBinPath = file_system_utils_1.FileSystemUtils.buildPath(file_system_utils_1.FileSystemUtils.getOsUserHome(), ".safira", properties.home["cache-folder"], "inso", properties.inso.version); const insoFile = file_system_utils_1.FileSystemUtils.buildPath(insoBinPath, "inso"); if (!file_system_utils_1.FileSystemUtils.exists(insoFile)) { throw new safira_exception_1.SafiraDependencyNotFoundException("inso not found. Please Reinstall Safira"); } return insoFile; } } exports.InsomniaClient = InsomniaClient;