-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathindex.js
34 lines (26 loc) · 925 Bytes
/
index.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
33
34
'use strict';
const { Args } = require('@oclif/core');
const BoxCommand = require('../../../box-command');
class FoldersGetAllMetadataCommand extends BoxCommand {
async run() {
const { args } = await this.parse(FoldersGetAllMetadataCommand);
let metadata = await this.client.folders.getAllMetadata(args.id);
await this.output(metadata);
}
}
FoldersGetAllMetadataCommand.aliases = [ 'folders:metadata:get-all' ];
FoldersGetAllMetadataCommand.description = 'Get all metadata on a folder';
FoldersGetAllMetadataCommand.examples = ['box folders:metadata 22222'];
FoldersGetAllMetadataCommand._endpoint = 'get_folders_id_metadata';
FoldersGetAllMetadataCommand.flags = {
...BoxCommand.flags
};
FoldersGetAllMetadataCommand.args = {
id: Args.string({
name: 'id',
required: true,
hidden: false,
description: 'ID of the folder to get all metadata on',
}),
};
module.exports = FoldersGetAllMetadataCommand;