Skip to content

Commit 837a6eb

Browse files
committed
removing --spec-format cmd line option
1 parent 019d7e2 commit 837a6eb

3 files changed

Lines changed: 1 addition & 12 deletions

File tree

src/cli/extract-command.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Extract command CLI registration
55
* Commander subcommand with --resource-group, --service-name, --output,
6-
* --filter, --no-transitive, --spec-format flags.
6+
* --filter, --no-transitive flags.
77
* Includes --format json: machine-readable JSON output mode.
88
*/
99

@@ -26,7 +26,6 @@ interface ExtractOptions {
2626
output: string;
2727
filter?: string;
2828
transitive: boolean;
29-
specFormat?: string;
3029
}
3130

3231
/**
@@ -40,7 +39,6 @@ export function createExtractCommand(): Command {
4039
.option('--output <dir>', 'Output directory path', './apim-artifacts')
4140
.option('--filter <path>', 'Filter configuration YAML file')
4241
.option('--no-transitive', 'Disable transitive dependency inclusion')
43-
.option('--spec-format <format>', 'API specification format (openapi-v2-json, openapi-v3-json, openapi-v3-yaml)')
4442
.action(async (options: ExtractOptions, command: Command) => {
4543
const globalOpts = command.optsWithGlobals<{
4644
logLevel?: string;
@@ -109,7 +107,6 @@ async function executeExtract(
109107
outputDir: options.output,
110108
filter: filterConfig,
111109
includeTransitive: options.transitive,
112-
specFormat: options.specFormat,
113110
logLevel: parseLogLevel(globalOpts.logLevel ?? 'info'),
114111
};
115112

src/models/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export interface ExtractConfig {
1313
outputDir: string;
1414
filter?: FilterConfig;
1515
includeTransitive: boolean;
16-
specFormat?: string;
1716
logLevel: LogLevel;
1817
otelConfigPath?: string;
1918
}

tests/unit/cli/extract-command.test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ describe('extract-command', () => {
5252
expect(noTransOpt).toBeDefined();
5353
});
5454

55-
it('should have --spec-format option', () => {
56-
const cmd = createExtractCommand();
57-
const opts = cmd.options;
58-
const specOpt = opts.find((o) => o.long === '--spec-format');
59-
expect(specOpt).toBeDefined();
60-
});
61-
6255
it('should have a description', () => {
6356
const cmd = createExtractCommand();
6457
expect(cmd.description()).toBeTruthy();

0 commit comments

Comments
 (0)