diff --git a/src/index.ts b/src/index.ts index 4f869fb..2df966a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -55,7 +55,8 @@ async function listAllDocsets(mirror?: string): Promise { singleLine: true, drawHorizontalLine: () => false, }); - console.log(output); + + console.log(output.trim()); } async function runWithOptions(options: any): Promise { @@ -66,7 +67,7 @@ async function runWithOptions(options: any): Promise { if (options.listAll) { await listAllDocsets(); - process.exit(0); + return; } let docsetsToInstall: Docset[] = []; @@ -97,6 +98,7 @@ async function runWithOptions(options: any): Promise { await extractDocset(tempPath, docsetDirectory); saveIcons(docset, docsetDirectory); saveMetadata(metadata, docsetDirectory); + logger.success(`Successfully added the ${docset.name} docset to Zeal`); });