Skip to content

Commit c67bf0f

Browse files
Update to oclif/core
1 parent c0642f7 commit c67bf0f

File tree

9 files changed

+569
-9508
lines changed

9 files changed

+569
-9508
lines changed

package-lock.json

Lines changed: 548 additions & 9485 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"access": "public"
99
},
1010
"dependencies": {
11-
"@oclif/command": "^1.6.1",
12-
"@oclif/config": "^1.15.1",
11+
"@oclif/core": "^1.13.10",
1312
"@twilio/cli-core": "^6.0.0"
1413
},
1514
"devDependencies": {

src/commands/token/chat.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { flags } = require('@oclif/command');
1+
const { Flags } = require('@oclif/core');
22
const { TwilioClientCommand } = require('@twilio/cli-core').baseCommands;
33
const Twilio = require('twilio');
44
const createToken = require('../../helpers/accessToken.js');
@@ -43,13 +43,13 @@ class ChatTokenGenerator extends TwilioClientCommand {
4343
}
4444

4545
const ChatTokenGeneratorFlags = {
46-
identity: flags.string({
46+
identity: Flags.string({
4747
description: 'The user identity for this Chat',
48-
required: true,
48+
required: true
4949
}),
50-
'chat-service-sid': flags.string({
50+
'chat-service-sid': Flags.string({
5151
description: 'The service SID for the Chat, starts with ISXXX',
52-
required: true,
52+
required: true
5353
}),
5454
};
5555

src/commands/token/flex.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const { flags } = require('@oclif/command');
21
const { TwilioClientCommand } = require('@twilio/cli-core').baseCommands;
32
const { TwilioCliError } = require('@twilio/cli-core').services.error;
43
const Twilio = require('twilio');

src/commands/token/sync.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { flags } = require('@oclif/command');
1+
const { Flags } = require('@oclif/core');
22
const { TwilioClientCommand } = require('@twilio/cli-core').baseCommands;
33
const Twilio = require('twilio');
44
const createToken = require('../../helpers/accessToken.js');
@@ -43,11 +43,11 @@ class SyncTokenGenerator extends TwilioClientCommand {
4343
}
4444

4545
const SyncTokenGeneratorFlags = {
46-
identity: flags.string({
46+
identity: Flags.string({
4747
description: 'The user identity for this Sync Service',
4848
required: true,
4949
}),
50-
'sync-service-sid': flags.string({
50+
'sync-service-sid': Flags.string({
5151
description: 'The service SID for the Sync, starts with ISXXX',
5252
required: true,
5353
}),

src/commands/token/video.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { flags } = require('@oclif/command');
1+
const { Flags } = require('@oclif/core');
22
const { TwilioClientCommand } = require('@twilio/cli-core').baseCommands;
33
const Twilio = require('twilio');
44
const createToken = require('../../helpers/accessToken.js');
@@ -28,7 +28,7 @@ class VideoTokenGenerator extends TwilioClientCommand {
2828
}
2929

3030
const VideoTokenGeneratorFlags = {
31-
'room-name': flags.string({
31+
'room-name': Flags.string({
3232
description: 'The name of the room this token grants access to',
3333
required: false,
3434
}),

src/helpers/globalFlags.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const { flags } = require('@oclif/command');
1+
const { Flags } = require('@oclif/core');
22

33
const globalFlags = {
4-
identity: flags.string({
4+
identity: Flags.string({
55
description: 'The user identity',
66
required: true,
77
}),
8-
ttl: flags.integer({
8+
ttl: Flags.integer({
99
description: 'Optional TTL for token (up to 24 hours) (value in seconds)',
1010
required: false,
1111
})

src/helpers/taskrouterGlobals.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const { flags } = require('@oclif/command');
1+
const { Flags } = require('@oclif/core');
22

33
const taskrouterFlags = {
4-
'worker-sid': flags.string({
4+
'worker-sid': Flags.string({
55
description: 'The Worker SID for this token',
66
required: true,
77
}),
8-
'workspace-sid': flags.string({
8+
'workspace-sid': Flags.string({
99
description: 'The Workspace SID for this token',
1010
required: true,
1111
})

src/helpers/voiceGlobals.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
const { flags } = require('@oclif/command');
1+
const { Flags } = require('@oclif/core');
22

33
const voiceFlags = {
4-
'voice-app-sid': flags.string({
4+
'voice-app-sid': Flags.string({
55
description: 'The TwiML Application SID for outbound calls, starts with APXXX',
66
required: true,
77
}),
8-
'allow-incoming': flags.string({
8+
'allow-incoming': Flags.string({
99
description: 'Allow incoming calls (true/false) (defaults to true)',
1010
options: ['true', 'false'],
1111
default: 'true',
1212
required: false
1313
}),
14-
'push-credential-sid': flags.string({
14+
'push-credential-sid': Flags.string({
1515
description: 'The Push Credential SID for receiving incoming call push notifications, starts with CRXXX',
1616
required: false
1717
})

0 commit comments

Comments
 (0)