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

d2fmt: D2 Format Support w/ Autosave #37

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

d2fmt: D2 Format Support w/ Autosave #37

wants to merge 9 commits into from

Conversation

andorsk
Copy link
Owner

@andorsk andorsk commented Jan 7, 2023

related to #30.

Heavily uses gofmt as inspiration for code. A couple things worth noting:

d2 fmt is only supported in version v0.1.4 onward. oss.tesseract origin is only available to v0.1.2 afaik. Brew is also behind v0.1.4. The point being, it is very likely that a lot of people will have unsupported versions.

Handling needs to be made with care that the proper messaging is provided to users that don't have the correct version of d2.

Additionally, it might make sense to add an additional feature to the repo, which is an upgrade command to upgrade d2.

#38

@andorsk andorsk self-assigned this Jan 7, 2023
@andorsk andorsk added the enhancement New feature or request label Jan 7, 2023
@andorsk andorsk added this to the Alpha 0.2 milestone Jan 7, 2023
@andorsk andorsk mentioned this pull request Jan 7, 2023
@andorsk
Copy link
Owner Author

andorsk commented Jan 7, 2023

will continue on this work next week. have to refocus on other things for now.

@andorsk andorsk linked an issue Jan 7, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

autoformat on save
1 participant