Skip to content
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

Support non-SVG output to STDOUT #2214

Open
twblalock opened this issue Nov 14, 2024 · 1 comment
Open

Support non-SVG output to STDOUT #2214

twblalock opened this issue Nov 14, 2024 · 1 comment
Labels
cli This issue is related to the CLI (cmd/d2) good first issue Good for newcomers

Comments

@twblalock
Copy link

I have a use case where I want to write a diagram to a PNG but instead of writing to a file directly, I want to write to STDOUT.

For example:

d2 diagram.d2 -

cannot be made to generate PNG.

Something like this would work:

d2 diagram.d2 --png -

Or a similar type of flag.

@cyborg-ts cyborg-ts added this to D2 Nov 14, 2024
@alixander alixander added good first issue Good for newcomers cli This issue is related to the CLI (cmd/d2) labels Dec 6, 2024
@Maricaya
Copy link

hi @alixander , I will work on this as my first contribution to the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli This issue is related to the CLI (cmd/d2) good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

3 participants