Skip to content

Commit

Permalink
Check for pandoc (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen authored Jul 12, 2024
1 parent 4537091 commit 6a6cb3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/csdl2markdown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
const { spawnSync } = require("child_process");

if (spawnSync("pandoc", ["-v"]).error) {
console.error("pandoc required (https://github.com/jgm/pandoc/releases)");
process.exit(1);
}

/**
* Converts OData CSDL JSON to Github Flavored Markdown
*
Expand Down

0 comments on commit 6a6cb3c

Please sign in to comment.