-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide an option to use stdout/stdin instead of files #15
Comments
Happy to take a PR that implements this feature. |
I think I'll try and introduce a breaking change, then. I'm thinking it would be reasonable to pick this approach: I want to change the CLI interface to something like this It introduces a breaking change, but empowers us to do lots of things:
What do you think about it? I think a breaking change is a bold move, but it's still a zero-version, so why not |
The goal of the current CLI is to be able to batch migrate several diagrams. Is that something that can be kept as a feature with your proposal? |
I think we can keep the behavior by using subcommands for different scenarios
It's going to be a bit tricky to implement using Alternatively, we could provide different cli commands for each use-case, how they do with a lot linux utilities. Not sure about that, though. What do you think about that? |
Is your feature request related to a problem? Please describe
I'm building a simple integration for BPMN and Jekyll. Here's my use-case:
.bpmn
files.bpmn
files to.svg
and.png
and embed them in the articleSince I'm using it from Ruby, I've decided to just call the CLI program and use its output.
However, there's something complicated: I have to perform it in-memory. See how I tackled it:
bpmn-to-image ${tmpFileWithSource.path}:${tmpFileWithSVG.path}.svg
tmpFileWithSVG
CLI docs haven't given me any other ideas how to proceed
Describe the solution you'd like
I would love to have an option to use standard OS streams for input an output.
Let's see how it might look like:
There's a lot of ways to design it, anything will work as long as it lets me use standard stream
Describe alternatives you've considered
Thought about writing a different javascript utility, which doesn't really work as a CLI, but it won't be that good.
Additional context
Since I'm the one who needs this feature, I can code it if you give me a green light
Please keep in mind that right now the CLI looks like it can generate multiple files in a single run. It will be tricky to keep this behavior using the new interface.
Alternatively, we could keep those two interfaces, but make them mutually exclusive.
The text was updated successfully, but these errors were encountered: