Skip to content

Commit

Permalink
fix: remove unused cli flags
Browse files Browse the repository at this point in the history
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
  • Loading branch information
andrew-scott-fischer committed Apr 1, 2024
1 parent aa37b22 commit 5a8a659
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions packages/openapi-generator/src/cli.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 5a8a659

Please sign in to comment.