fix(cli): Ensure async completion for aidoc readme and description generation
This commit is contained in:
		| @@ -1,5 +1,10 @@ | |||||||
| # Changelog | # Changelog | ||||||
|  |  | ||||||
|  | ## 2024-10-28 - 1.4.2 - fix(cli) | ||||||
|  | Ensure async completion for aidoc readme and description generation | ||||||
|  |  | ||||||
|  | - Added await statements for asynchronous methods buildReadme and buildDescription in the aidoc command. | ||||||
|  |  | ||||||
| ## 2024-10-28 - 1.4.1 - fix(readme) | ## 2024-10-28 - 1.4.1 - fix(readme) | ||||||
| Correct async call to getModuleSubDirs in readme generation. | Correct async call to getModuleSubDirs in readme generation. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -3,6 +3,6 @@ | |||||||
|  */ |  */ | ||||||
| export const commitinfo = { | export const commitinfo = { | ||||||
|   name: '@git.zone/tsdoc', |   name: '@git.zone/tsdoc', | ||||||
|   version: '1.4.1', |   version: '1.4.2', | ||||||
|   description: 'An advanced TypeScript documentation tool using AI to generate and enhance documentation for TypeScript projects.' |   description: 'An advanced TypeScript documentation tool using AI to generate and enhance documentation for TypeScript projects.' | ||||||
| } | } | ||||||
|   | |||||||
| @@ -28,14 +28,14 @@ export const run = async () => { | |||||||
|   }); |   }); | ||||||
|  |  | ||||||
|   tsdocCli.addCommand('aidoc').subscribe(async (argvArg) => { |   tsdocCli.addCommand('aidoc').subscribe(async (argvArg) => { | ||||||
|     logger.log('info', `Generating new readme...`); |  | ||||||
|     logger.log('info', `This may take some time...`); |  | ||||||
|     const aidocInstance = new AiDoc(); |     const aidocInstance = new AiDoc(); | ||||||
|     await aidocInstance.start(); |     await aidocInstance.start(); | ||||||
|     aidocInstance.buildReadme(paths.cwd); |     logger.log('info', `Generating new readme...`); | ||||||
|  |     logger.log('info', `This may take some time...`); | ||||||
|  |     await aidocInstance.buildReadme(paths.cwd); | ||||||
|     logger.log('info', `Generating new keywords...`); |     logger.log('info', `Generating new keywords...`); | ||||||
|     logger.log('info', `This may take some time...`); |     logger.log('info', `This may take some time...`); | ||||||
|     aidocInstance.buildDescription(paths.cwd); |     await aidocInstance.buildDescription(paths.cwd); | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
|   tsdocCli.addCommand('test').subscribe((argvArg) => { |   tsdocCli.addCommand('test').subscribe((argvArg) => { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user