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

40 lines (39 loc) 1.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const command_1 = require("@oclif/command"); const common_1 = require("../../common"); const tf_download_service_1 = require("../../services/tf/tf.download-service"); class Download extends common_1.BaseCommand { constructor() { super(...arguments); this.loadConfigPartially = true; } getService(configManager) { return new tf_download_service_1.TFDownloadStateFileService(configManager); } getArgsAndFlags() { return this.parse(Download); } } exports.default = Download; Download.description = "Downloads a state file to an Onboardbase store"; Download.flags = { help: command_1.flags.help({ char: "h" }), "store-key": command_1.flags.string({ description: "Store Key", required: true, }), "locker-key": command_1.flags.string({ description: "Locker Key", required: false, }), file: command_1.flags.string({ char: "f", description: "Path to file", required: false, }), "file-id": command_1.flags.string({ description: "A unique identifier for the file in the store", required: false, }), };