-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathget.js
32 lines (25 loc) · 835 Bytes
/
get.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict';
const { Args } = require('@oclif/core');
const BoxCommand = require('../../box-command');
class TermsOfServiceGetCommand extends BoxCommand {
async run() {
const { args } = await this.parse(TermsOfServiceGetCommand);
let termsOfService = await this.client.termsOfService.get(args.id);
await this.output(termsOfService);
}
}
TermsOfServiceGetCommand.description = 'Get information on a terms of service';
TermsOfServiceGetCommand.examples = ['box terms-of-service:get 55555'];
TermsOfServiceGetCommand._endpoint = 'get_terms_of_services_id';
TermsOfServiceGetCommand.flags = {
...BoxCommand.flags
};
TermsOfServiceGetCommand.args = {
id: Args.string({
name: 'id',
required: true,
hidden: false,
description: 'ID for the terms of service to get',
}),
};
module.exports = TermsOfServiceGetCommand;