UNPKG

@veecode-platform/safira-cli

Version:

Generate a microservice project from your spec.

27 lines (26 loc) 968 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BitbucketParameter = void 0; const ritchie_command_1 = require("../../ritchie/ritchie-command"); class BitbucketParameter { constructor() { } add(projectName, parameterName, parameterValue, parameterMasked) { let command = "bitbucket parameter add "; if (projectName) command += `--project_name ${projectName} `; if (parameterName) command += `--parameter_name ${parameterName} `; if (parameterValue) command += `--parameter_value ${parameterValue} `; if (parameterMasked) command += "--parameter_masked "; ritchie_command_1.RitchieCommand.instance.runWithResponse(command); } static get instance() { if (!this._instance) { this._instance = new this(); } return this._instance; } } exports.BitbucketParameter = BitbucketParameter;