Skip to content

d2fmt: D2 Format Support w/ Autosave #37

Draft
andorsk wants to merge 9 commits into
mainfrom
d2-fmt
Draft

d2fmt: D2 Format Support w/ Autosave #37
andorsk wants to merge 9 commits into
mainfrom
d2-fmt

Conversation

@andorsk

@andorsk andorsk commented Jan 7, 2023

Copy link
Copy Markdown
Owner

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

andorsk commented Jan 7, 2023

Copy link
Copy Markdown
Owner Author

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