@@ -19,7 +19,7 @@ import {
1919 notifyUpdateCliVersion ,
2020 version ,
2121} from './utils/update-version-notifier' ;
22- import { commandWrapper } from './wrapper' ;
22+ import { type CommandArgs , commandWrapper } from './wrapper' ;
2323import { previewProject } from './commands/preview-project' ;
2424import { handleTranslations } from './commands/translations' ;
2525import { handleEject } from './commands/eject' ;
@@ -30,7 +30,7 @@ import type { Arguments } from 'yargs';
3030import type { OutputFormat , RuleSeverity } from '@redocly/openapi-core' ;
3131import type { BuildDocsArgv } from './commands/build-docs/types' ;
3232import type { PushStatusOptions } from './reunite/commands/push-status' ;
33- import type { PushArguments } from './types' ;
33+ import type { CommandOptions , PushArguments } from './types' ;
3434import type { EjectOptions } from './commands/eject' ;
3535
3636dotenv . config ( { path : path . resolve ( process . cwd ( ) , './.env' ) } ) ;
@@ -914,11 +914,6 @@ yargs
914914 describe : 'JSON file output name' ,
915915 type : 'string' ,
916916 } ,
917- residency : {
918- describe : 'Residency of Reunite application. Defaults to US.' ,
919- type : 'string' ,
920- default : 'us' ,
921- } ,
922917 'client-cert' : {
923918 describe : 'Mutual TLS client certificate' ,
924919 type : 'string' ,
@@ -964,21 +959,15 @@ yargs
964959 'Generate config with populated values from description using success criteria' ,
965960 type : 'boolean' ,
966961 } ,
967- residency : {
968- describe : 'Residency of Reunite application. Defaults to US.' ,
969- type : 'string' ,
970- default : 'us' ,
971- } ,
972962 } ) ;
963+ } ,
964+ async ( argv ) => {
965+ process . env . REDOCLY_CLI_COMMAND = 'generate-arazzo' ;
966+ const { handleGenerate } = await import ( '@redocly/respect-core' ) ;
967+ commandWrapper (
968+ handleGenerate as ( wrapperArgs : CommandArgs < CommandOptions > ) => Promise < unknown >
969+ ) ( argv ) ;
973970 }
974- // async (argv) => {
975- // try {
976- // await handleGenerate(argv as GenerateConfigFileArgv);
977- // } catch {
978- // logger.error(`❌ Auto config generation failed.`);
979- // process.exit(1);
980- // }
981- // },
982971 )
983972 . completion ( 'completion' , 'Generate autocomplete script for `redocly` command.' )
984973 . demandCommand ( 1 )
0 commit comments