Skip to content

Commit

Permalink
Fix export method
Browse files Browse the repository at this point in the history
  • Loading branch information
makis-san committed Feb 16, 2023
1 parent e6975f4 commit 69a838d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
1 change: 0 additions & 1 deletion src/export/terminal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
)
Expand Down

0 comments on commit 69a838d

Please sign in to comment.