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

d2format: Expose in CLI under fmt subcommand #292

Merged
merged 5 commits into from
Dec 1, 2022

Conversation

nhooyr
Copy link
Contributor

@nhooyr nhooyr commented Dec 1, 2022

  • ci/dev.sh: Add
  • lib/xmain: Print usage info in separate log
  • d2format: Expose in CLI under fmt subcommand

@nhooyr nhooyr changed the title autofmt f0d3 d2format: Expose in CLI under fmt subcommand Dec 1, 2022
@nhooyr nhooyr requested review from alixander and a team December 1, 2022 10:49
@scsmithr
Copy link

scsmithr commented Dec 1, 2022

I have a small request on this. Would it be possible to allow providing the input on stdin? I'd like to get formatting integrated into my emacs setup and it's easier to do that with tools that accept file contents on stdin.

@pleshevskiy
Copy link

pleshevskiy commented Dec 1, 2022

@scsmithr Yes echo "h1;h2;h3;" | d2 fmt -

I've already added PR to the neoformat vim plugin sbdchd/neoformat#438

@scsmithr
Copy link

scsmithr commented Dec 1, 2022

Oh nice, then this works for me.

@nhooyr nhooyr merged commit 0cb7109 into terrastruct:master Dec 1, 2022
@nhooyr nhooyr deleted the autofmt-f0d3 branch December 1, 2022 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants