/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * Copyright 2015 Joyent, Inc. * * `triton rbac ...` */ var Cmdln = require('cmdln').Cmdln; var util = require('util'); // ---- CLI class function RbacCLI(top) { this.top = top; Cmdln.call(this, { name: top.name + ' rbac', /* BEGIN JSSTYLED */ desc: 'Role-based Access Control (RBAC) commands. *Experimental.*\n' + '\n' + 'See for a general start.', /* END JSSTYLED */ helpOpts: { minHelpCol: 24 /* line up with option help */ } }); } util.inherits(RbacCLI, Cmdln); RbacCLI.hidden = true; RbacCLI.prototype.init = function init(opts, args, cb) { this.log = this.top.log; Cmdln.prototype.init.apply(this, arguments); }; RbacCLI.prototype.do_users = require('./do_users'); RbacCLI.prototype.do_user = require('./do_user'); module.exports = RbacCLI;