From 5a8a659ffebdf3d15676238f61a8b717f661e1c7 Mon Sep 17 00:00:00 2001 From: Andrew Fischer Date: Mon, 1 Apr 2024 15:13:21 -0700 Subject: [PATCH] fix: remove unused cli flags The `--internal` and `--unstable` cli flags were never actually used by openapi-generator. This commit removes no functionality of the tool, it only cleans the cli interface. Ticket: VL-1855 --- packages/openapi-generator/src/cli.ts | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/packages/openapi-generator/src/cli.ts b/packages/openapi-generator/src/cli.ts index cf5fe22d..0bcb269c 100644 --- a/packages/openapi-generator/src/cli.ts +++ b/packages/openapi-generator/src/cli.ts @@ -1,15 +1,6 @@ #!/usr/bin/env node -import { - command, - run, - option, - string, - optional, - flag, - boolean, - positional, -} from 'cmd-ts'; +import { command, run, option, string, optional, positional } from 'cmd-ts'; import * as E from 'fp-ts/Either'; import * as fs from 'fs'; import * as p from 'path'; @@ -53,20 +44,6 @@ const app = command({ long: 'description', short: 'd', }), - includeInternal: flag({ - type: boolean, - description: 'include routes marked private', - long: 'internal', - short: 'i', - defaultValue: () => false, - }), - includeUnstable: flag({ - type: boolean, - description: 'include routes marked unstable', - long: 'unstable', - short: 'u', - defaultValue: () => false, - }), codecFile: option({ type: optional(string), description: 'Custom codec definition file',