File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ generate-service-interface --source <source_directory> --output <output_director
2121
2222- ` --source ` , ` -s ` : Specify the source directory. Default: ` src `
2323- ` --output ` , ` -o ` : Specify the output directory. Default: ` dist `
24+ - ` --framework ` , ` -f ` : Specify the target framework. Options: ` next ` (Optional)
2425
2526## Example
2627
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ const argv = yargs
1313 type : "string" ,
1414 demandOption : false ,
1515 } )
16+ . option ( "framework" , {
17+ alias : "f" ,
18+ describe : "Specify the target framework" ,
19+ type : "string" ,
20+ demandOption : false ,
21+ } )
1622 . argv ;
1723
1824export default async function getArgument ( name : string ) {
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import resolveProperties from "./core/resolvers/property";
1616import generateSwaggerJson from "./core/swagger" ;
1717
1818( async ( ) => {
19+ const framework = await getArgument ( "framework" ) ?? null ;
20+
1921 const sourceFolder = await getArgument ( "source" ) ?? "src" ;
2022 const sourceDir = path . resolve ( process . cwd ( ) , sourceFolder ) ;
2123
You can’t perform that action at this time.
0 commit comments