-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
⚡ enhancementRequest for new functionalityRequest for new functionality
Description
🤔 What's the problem you're trying to solve?
The code for pretty printing a feature file operates on messages. As such this module doesn't need a dependency on Gherkin per-se. However because the Javascript implementation also includes a CLI, the Gherkin parser as well as several other dependencies are added to make this possible.
These added dependencies make the Gherkin Util module less suitable for being a utilities module.
✨ What's your proposed solution?
Consider extracting the CLI from gherkin-utils to gherkin-cli and that provides
gherkin parse <FILE>-> outputs Gherkin document as json.gherkin format <FILE>-> outputs the prettied Gherkin document.
⛏ Have you considered any alternatives or workarounds?
No response
📚 Any additional context?
I created a POC for doing something similar with messages here:
Metadata
Metadata
Assignees
Labels
⚡ enhancementRequest for new functionalityRequest for new functionality