fix(cli): Ensure async completion for aidoc readme and description generation

This commit is contained in:
Philipp Kunz 2024-10-28 21:45:28 +01:00
parent 370cbfe6f3
commit 58d060d729
3 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,10 @@
# 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)
Correct async call to getModuleSubDirs in readme generation.

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
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.'
}

View File

@ -28,14 +28,14 @@ export const run = async () => {
});
tsdocCli.addCommand('aidoc').subscribe(async (argvArg) => {
logger.log('info', `Generating new readme...`);
logger.log('info', `This may take some time...`);
const aidocInstance = new AiDoc();
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', `This may take some time...`);
aidocInstance.buildDescription(paths.cwd);
await aidocInstance.buildDescription(paths.cwd);
});
tsdocCli.addCommand('test').subscribe((argvArg) => {