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

d2 fmt should take directory input #1526

Open
alixander opened this issue Aug 2, 2023 · 2 comments
Open

d2 fmt should take directory input #1526

alixander opened this issue Aug 2, 2023 · 2 comments
Labels
fmt good first issue Good for newcomers

Comments

@alixander
Copy link
Collaborator

alixander commented Aug 2, 2023

and recursively fmt all d2 files in it

like how https://pkg.go.dev/cmd/gofmt does

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Aug 2, 2023

the following example is safe on windows.

> for /r %f in ( *.d2 ) do d2 fmt %f

@maxbrunet
Copy link
Contributor

Workaround in Bash: d2 fmt **/*.d2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fmt good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

3 participants