Skip to content

Commit adca76b

Browse files
authored
fix: Remove description flag from folders:create command (#587)
1 parent d0dc588 commit adca76b

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Name,Description,ParentId
2-
mass-creation,a description,0
3-
addl-testing,another,0
1+
Name,ParentId
2+
mass-creation,0
3+
addl-testing,0
44
service-folder,,0
5-
basic-create,,0
5+
basic-create,,0

src/commands/folders/create.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const BoxCommand = require('../../box-command');
44
const { Flags, Args } = require('@oclif/core');
5-
const utils = require('../../util');
65

76
class FoldersCreateCommand extends BoxCommand {
87
async run() {
@@ -32,7 +31,6 @@ FoldersCreateCommand._endpoint = 'post_folders';
3231

3332
FoldersCreateCommand.flags = {
3433
...BoxCommand.flags,
35-
description: Flags.string({ description: 'A description for folder <DESCRIPTION>', parse: utils.unescapeSlashes }),
3634
'id-only': Flags.boolean({
3735
description: 'Return only an ID to output from this command'
3836
})

test/commands/folders.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,6 @@ describe('Folders', () => {
11351135
describe('folders:create', () => {
11361136
let parentFolderId = '0',
11371137
name = 'New Folder',
1138-
description = 'This is my new folder',
11391138
fixture = getFixture('folders/post_folders'),
11401139
yamlOutput = getFixture('output/folders_create_yaml.txt');
11411140

@@ -1200,7 +1199,6 @@ describe('Folders', () => {
12001199
.nock(TEST_API_ROOT, api => api
12011200
.post('/2.0/folders', {
12021201
...expectedBody,
1203-
description,
12041202
})
12051203
.reply(409, {
12061204
type: 'error',
@@ -1226,7 +1224,6 @@ describe('Folders', () => {
12261224
'folders:create',
12271225
parentFolderId,
12281226
name,
1229-
`--description=${description}`,
12301227
'--json',
12311228
'--token=test'
12321229
])

0 commit comments

Comments
 (0)