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

fmt from stdout should always output the formatted diagram #1577

Open
jscarrott opened this issue Sep 7, 2023 · 2 comments
Open

fmt from stdout should always output the formatted diagram #1577

jscarrott opened this issue Sep 7, 2023 · 2 comments
Labels
cli This issue is related to the CLI (cmd/d2) fmt good first issue Good for newcomers

Comments

@jscarrott
Copy link

I want to use d2 to format on save in helix but as it outputs nothing if the doc is already formatted it can completely delete the diagram if I am not careful.

@alixander
Copy link
Collaborator

oh true

@alixander alixander added good first issue Good for newcomers cli This issue is related to the CLI (cmd/d2) fmt labels May 23, 2024
@alixander
Copy link
Collaborator

We should just conform to what https://pkg.go.dev/cmd/gofmt does.

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) fmt good first issue Good for newcomers
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants