UNPKG

@onboardbase/cli

Version:

[![Version](https://img.shields.io/npm/v/@onboardbase/cli.svg)](https://www.npmjs.com/package/@onboardbase/cli) [![Downloads/week](https://img.shields.io/npm/dw/@onboardbase/cli.svg)](https://www.npmjs.com/package/@onboardbase/cli) [![License](https://img

34 lines (33 loc) 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const command_1 = require("@oclif/command"); const common_1 = require("../../common"); const create_service_1 = require("../../services/mr/create.service"); class CreateRecommendation extends common_1.BaseCommand { getService(configManager) { return new create_service_1.MergeRequestCreateCommandService(configManager); } getArgsAndFlags() { return this.parse(CreateRecommendation); } } exports.default = CreateRecommendation; CreateRecommendation.description = "Create a recommendation"; CreateRecommendation.flags = { help: command_1.flags.help({ char: "h" }), project: command_1.flags.string({ char: "p", description: "name of project", required: false, }), environment: command_1.flags.string({ char: "e", description: "Environment to recommend update for", }), note: command_1.flags.string({ char: "n", description: "Note", required: false }), "from-local-secrets": command_1.flags.boolean({ default: false, description: "specify if you want to create a recommendation from your local secrets", }), }; CreateRecommendation.args = [{ name: "secrets" }];