wdl
wdl copied to clipboard
feat: format
Describe the problem or feature in addition to a link to the issues.
New crate, wdl-format
! Handles all things formatting!
In the interest of keeping this PR from sprawling further, there are some known issues/TODOs that will be handled in follow-up PRs.
- Right now, every
Expr
is just copied verbatim instead of being actually formatted. Actually formatted them in all their complexity will involve a lot of new code. - Placeholders in literal strings are similarly copied verbatim, but will be formatted in a follow-up
- Whitespace is always ignored in the current PR. A future PR will implement respecting certain line-breaks and blank lines.
- Sorting input sections
Before submitting this PR, please make sure:
- [x] You have added a few sentences describing the PR here.
- [x] You have added yourself or the appropriate individual as the assignee.
- [x] You have added at least one relevant code reviewer to the PR.
- [x] Your code builds clean without any errors or warnings.
- [x] You have added tests (when appropriate).
- [x] You have updated the README or other documentation to account for these changes (when appropriate).
- [x] You have added an entry to the relevant
CHANGELOG.md
(see "keep a changelog" for more information). - [x] Your commit messages follow the conventional commit style.