Skip to content

Commit

Permalink
Remove newline below list-all table and return instead of process.exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmerle committed Oct 19, 2023
1 parent 8cc5947 commit 562791d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ async function listAllDocsets(mirror?: string): Promise<void> {
singleLine: true,
drawHorizontalLine: () => false,
});
console.log(output);

console.log(output.trim());
}

async function runWithOptions(options: any): Promise<void> {
Expand All @@ -66,7 +67,7 @@ async function runWithOptions(options: any): Promise<void> {

if (options.listAll) {
await listAllDocsets();
process.exit(0);
return;
}

let docsetsToInstall: Docset[] = [];
Expand Down Expand Up @@ -97,6 +98,7 @@ async function runWithOptions(options: any): Promise<void> {
await extractDocset(tempPath, docsetDirectory);
saveIcons(docset, docsetDirectory);
saveMetadata(metadata, docsetDirectory);

logger.success(`Successfully added the ${docset.name} docset to Zeal`);
});

Expand Down

0 comments on commit 562791d

Please sign in to comment.