该仓库已于 2020-01-20 归档。您可以查看文件或克隆它,但不能推送、创建工单或合并请求。

51 行
1.1 KiB
JavaScript

2016-01-04 22:51:04 -08:00
/*
* 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 2016 Joyent, Inc.
*
* `triton account ...`
*/
var Cmdln = require('cmdln').Cmdln;
var util = require('util');
// ---- CLI class
function AccountCLI(top) {
this.top = top;
Cmdln.call(this, {
name: top.name + ' account',
/* BEGIN JSSTYLED */
desc: [
'Get and update your Triton account.'
].join('\n'),
/* END JSSTYLED */
helpOpts: {
minHelpCol: 24 /* line up with option help */
},
helpSubcmds: [
'help',
'get',
'update'
2016-01-04 22:51:04 -08:00
]
});
}
util.inherits(AccountCLI, Cmdln);
AccountCLI.prototype.init = function init(opts, args, cb) {
this.log = this.top.log;
Cmdln.prototype.init.apply(this, arguments);
};
AccountCLI.prototype.do_get = require('./do_get');
AccountCLI.prototype.do_update = require('./do_update');
2016-01-04 22:51:04 -08:00
module.exports = AccountCLI;