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.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const command_1 = require("@oclif/command"); const common_1 = require("../../common"); const tf_upload_service_1 = require("../../services/tf/tf.upload-service"); class Upload extends common_1.BaseCommand { constructor() { super(...arguments); this.loadConfigPartially = true; } getService(configManager) { return new tf_upload_service_1.TFUploadStateFileService(configManager); } getArgsAndFlags() { return this.parse(Upload); } } exports.default = Upload; Upload.description = "Uploads a state file to an Onboardbase store"; Upload.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-id": command_1.flags.string({ description: "A unique identifier for the file in the store", required: false, }), file: command_1.flags.string({ char: "f", description: "Path to file", required: false, }), };