Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add the
sprocket format
command. (#24)
* feat: add the `sprocket format` command. This commit adds the `format` command to `sprocket`. The command will format a single WDL document. Also updated the existing commands to the latest WDL API and corrected the environment variable name for publishing crates. Included the analysis rules in `sprocket explain`; the list of rules is now sorted by id. * chore: remove `unwrap` call in favor of an explicit error message. * fix: fix `with-tabs` and `indentation-size` options. Both options were missing `arg(long)`. * Update src/commands/format.rs Co-authored-by: Andrew Frantz <[email protected]> * feat: add support for formatting directories. This commit adds support for formatting directories. By default, the `format` command will attempt to print a single formatted document to stdout. If the `--overwrite` option is specified, a directory may be specified and all of the WDL documents recursively found in the directory will be overwritten with the formatted contents. * Update src/main.rs * chore: run `rustfmt`. * chore: bump to 0.9.1. * Update src/commands/format.rs Co-authored-by: Andrew Frantz <[email protected]> --------- Co-authored-by: Andrew Frantz <[email protected]>
- Loading branch information