UNPKG

@xgheaven/nos-cli

Version:
38 lines (37 loc) 1.56 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 create_1 = require("./create"); var delete_1 = require("./delete"); var list_1 = require("./list"); var BucketCommand = /** @class */ (function (_super) { __extends(BucketCommand, _super); function BucketCommand() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.command = 'bucket'; _this.describe = 'Manage Bucket'; return _this; } BucketCommand.prototype.builder = function (args) { return _super.prototype.builder.call(this, args) .demandCommand() .command(new list_1.BucketListCommand()) .command(new create_1.BucketCreateCommand()) .command(new delete_1.BucketDeleteCommand()); }; return BucketCommand; }(client_base_command_1.ClientBaseCommand)); exports.BucketCommand = BucketCommand;