Closed mvdan closed 2 years ago
cc @cilki @JounQin
A large portion of the diff is JSON output in test files, which was automatically generated via go test -u
. It shouldn't be closely reviewed, but I did skim it for any mistakes or unexpected changes.
So it won't a core API but left in shfmt
right? I'd like to use it without shfmt
for small bundle, should I copy/paste related codes instead?
@JounQin One step at a time :) If I was implementing from-json, removing reflect, and adding the library API all in one PR, this would take weeks and be an absolutely massive change.
@mvdan Thanks for clarifying, I just want to make sure it will be in core API in the future.
Did one last push as I forgot to update the man page; see https://github.com/mvdan/sh/compare/46e0c4e09353c070bc3e23b1aac4a3b800c64d4b..e5d80446cfdede8b096dd7c9553edf1e73ce5ab7. I'll be merging on green. Thanks for the review!
(see commit message)
Fixes #35 again, as we never implemented the "read JSON" side.