From 69a838d1cce81fabe45d34c5831b24c63e316861 Mon Sep 17 00:00:00 2001 From: Santiago Souza Date: Thu, 16 Feb 2023 10:45:58 -0300 Subject: [PATCH] Fix export method --- src/actions/init.ts | 2 +- src/export/terminal/index.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/actions/init.ts b/src/actions/init.ts index 4f61bfb..e3fe0ae 100644 --- a/src/actions/init.ts +++ b/src/actions/init.ts @@ -81,7 +81,7 @@ export default async (args: CLIArguments) => { const { calendarTitle, events } = res - if (!exportMethods.includes(exportMethod)) process.exit(1) + if (!Object.keys(_export).includes(exportMethod)) process.exit(1) _export[exportMethod](calendarTitle, events, locale) } diff --git a/src/export/terminal/index.ts b/src/export/terminal/index.ts index 96a4e3d..fbaef51 100644 --- a/src/export/terminal/index.ts +++ b/src/export/terminal/index.ts @@ -22,7 +22,6 @@ export default ( const table = new Table({ head: Object.keys(data) }) - console.log(process.argv) table.push( Object.keys(data).map((month) => `${data[month].length} event(s) loaded`) )