diff --git a/README.md b/README.md index 53664bf..8d71562 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ that's it! You've successfuly converted json report to _slick_ md report. | `--output` | `-o` | Path to the output markdown file | No | ./md-reports/output.md | | `--template` | `-t` | Path to the markdown template file | No | ./sample-template.md | | `--title` | `-T` | Title for the report | No | Test Report | +| `--verbose` | `-v` | Verbose mode | No | false | ## Templating, tags and customization diff --git a/index.js b/index.js index 1ef971b..2f73a79 100755 --- a/index.js +++ b/index.js @@ -3,6 +3,39 @@ const fs = require("fs"); const { program } = require("commander"); const mustache = require("mustache"); const pathPkg = require("path"); +const winston = require("winston"); + +program + .option("-p, --path ", "Specify the path to the report") + .option("-o, --output ", "Specify the path for the markdown file", "./md-reports/output.md") + .option("-t, --template