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.
related to https://github.com/andorsk/d2-mode/issues/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 tov0.1.2
afaik. Brew is also behindv0.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.
https://github.com/andorsk/d2-mode/issues/38