1- import { Command } from "@commander-js/extra-typings" ;
1+ import { Command , createOption } from "@commander-js/extra-typings" ;
22import { expandInputJson } from "./lib/input-json.ts" ;
33import { setLogLevel } from "./lib/log.ts" ;
44import { setMode , type Mode } from "./mode.ts" ;
@@ -42,6 +42,7 @@ import { isAgent } from "./mode.ts";
4242import { log } from "./lib/log.ts" ;
4343import { maybeNotifyUpdate , getCurrentVersion } from "./lib/update-check.ts" ;
4444import { getAuthToken } from "./lib/plapi.ts" ;
45+ import { parseIntegerOption } from "./lib/option-parsers.ts" ;
4546import { webhooks as webhooksHandlers } from "./commands/webhooks/index.ts" ;
4647import { registerExtras } from "@clerk/cli-extras" ;
4748
@@ -207,7 +208,6 @@ export function createProgram(): Program {
207208 endpointId,
208209 } ) ,
209210 ) ;
210- : add 'webhooks get' command )
211211
212212 webhooks
213213 . command ( "event-types" )
@@ -228,7 +228,6 @@ export function createProgram(): Program {
228228 cmd . optsWithGlobals ( ) as Parameters < typeof webhooksHandlers . eventTypes > [ 0 ] ,
229229 ) ,
230230 ) ;
231- : add 'webhooks event-types' command )
232231
233232 webhooks
234233 . command ( "secret" )
@@ -259,7 +258,6 @@ export function createProgram(): Program {
259258 endpointId,
260259 } ) ,
261260 ) ;
262- : add 'webhooks secret' command with -- rotate )
263261
264262 webhooks
265263 . command ( "delete" )
@@ -282,7 +280,6 @@ export function createProgram(): Program {
282280 endpointId,
283281 } ) ,
284282 ) ;
285- : add 'webhooks delete' command )
286283
287284 webhooks
288285 . command ( "update" )
@@ -320,7 +317,6 @@ export function createProgram(): Program {
320317 endpointId,
321318 } ) ,
322319 ) ;
323- : add 'webhooks update' command )
324320
325321 webhooks
326322 . command ( "create" )
@@ -353,7 +349,6 @@ export function createProgram(): Program {
353349 cmd . optsWithGlobals ( ) as Parameters < typeof webhooksHandlers . create > [ 0 ] ,
354350 ) ,
355351 ) ;
356- : add 'webhooks create' command )
357352
358353 webhooks
359354 . command ( "messages" )
@@ -389,7 +384,6 @@ export function createProgram(): Program {
389384 cmd . optsWithGlobals ( ) as Parameters < typeof webhooksHandlers . messages > [ 0 ] ,
390385 ) ,
391386 ) ;
392- : add 'webhooks messages' command )
393387
394388 webhooks
395389 . command ( "replay" )
@@ -423,7 +417,6 @@ export function createProgram(): Program {
423417 msgId,
424418 } ) ,
425419 ) ;
426- : add 'webhooks replay' command )
427420
428421 webhooks
429422 . command ( "trigger" )
@@ -452,7 +445,6 @@ export function createProgram(): Program {
452445 eventType,
453446 } ) ,
454447 ) ;
455- : add 'webhooks trigger' command )
456448
457449 webhooks
458450 . command ( "open" )
@@ -464,7 +456,6 @@ export function createProgram(): Program {
464456 . action ( ( _opts , cmd ) =>
465457 webhooksHandlers . open ( cmd . optsWithGlobals ( ) as Parameters < typeof webhooksHandlers . open > [ 0 ] ) ,
466458 ) ;
467- : add 'webhooks open' command )
468459
469460 webhooks
470461 . command ( "verify" )
@@ -494,7 +485,6 @@ export function createProgram(): Program {
494485 cmd . optsWithGlobals ( ) as Parameters < typeof webhooksHandlers . verify > [ 0 ] ,
495486 ) ,
496487 ) ;
497- : add offline 'webhooks verify' command )
498488
499489 webhooks
500490 . command ( "listen" )
@@ -528,7 +518,6 @@ export function createProgram(): Program {
528518 cmd . optsWithGlobals ( ) as Parameters < typeof webhooksHandlers . listen > [ 0 ] ,
529519 ) ,
530520 ) ;
531- : add 'webhooks listen' command )
532521 return program ;
533522}
534523
0 commit comments