UNPKG

@xgheaven/nos-cli

Version:
40 lines (39 loc) 1.59 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var client_base_command_1 = require("../client-base-command"); var delete_1 = require("./delete"); var get_1 = require("./get"); var info_1 = require("./info"); var put_1 = require("./put"); var ObjectCommand = /** @class */ (function (_super) { __extends(ObjectCommand, _super); function ObjectCommand() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.command = 'object'; _this.describe = 'Manage Object'; return _this; } ObjectCommand.prototype.builder = function (args) { return args .demandCommand() .command(new put_1.ObjectPutCommand()) .command(new get_1.ObjectGetCommand()) .command(new delete_1.ObjectDeleteCommand()) .command(new info_1.ObjectInfoCommand()); }; return ObjectCommand; }(client_base_command_1.ClientBaseCommand)); exports.ObjectCommand = ObjectCommand;