Commits
Click on a commit to change the comparison rangerefactor: further separate CLI logic from the API related functionality (see #117) (#124)
* refactor: use `std::ops::Not::not` instead of custom `is_false` function
* refactor: further separate API logic from CLI, and create submodules for each subcommand
* fix: fmt
* fix: nightly `rustfmt` warning: the `version` option is deprecated. Use `style_edition` instead.
* fix: fmt
* refactor: `ProcessCommand` -> `process::Command`
* fix: remove unused imports
* refactor: make link more readable for CLI
* fix: `clippy` and `doc` warnings
* chore: bump minimum rust version
* fix: misc CI issues
* feat: use `enum_dispatch` to avoid needing to manually call `cmd.execute` for each variant of `Command`
* refactor: avoid cloning request input string
* refactor: use `Cow<'static, str>` instead of `String` for `check::Request.text`
* chore(lib): adding Cow
* refactor: use `Cow<'source, str>` when not compiling with the `cli` feature
Required cloning structs and methods from `api::check` to separate out
the `clap` functionality, as `clap` wouldn't support the lifetime
without it being `'static`
* fix: remove unnecessary clone of `split_pattern`
* refactor: use `Cow<'source, str>` for text referenced by `ResponseWithContext`
* Update CI.yml
* Update README.md
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* Update benches/benchmarks/check_texts.rs
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* Update benches/benchmarks/check_texts.rs
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* Update src/api/server.rs
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* Update tests/match_positions.rs
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* fix: formatting
* fix: remove unused imports
* fix: remove static lifetime from `with_text` and `with_data`
* fix: correct length addition and use `Cow::to_mut`
* fix: satisfy `clippy` pre-commit hook
---------
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>1 month ago
by Rolv-Apneseth refactor: remove unnecessary code duplication from `cli/check`1 month ago
by Rolv-Apneseth ci: include newer versions of `languagetool` in tests (#126)
* ci: include newer versions of `languagetool` in tests
* tests: debug errors with server testing
* ci: `--no-capture` for testing library code, for easier debugging failing CI tests1 month ago
by Rolv-Apneseth refactor(lib): consolidate `reqwest` errors (#125)
* refactor: consolidate `Error::ResponseDecode` and `Error::ResponseEncode` into just `Error::Reqwest`
* tests: `Error::Reqwest`
* tests: check that an invalid request is returned when the input is too long when checking either text or annotated data26 days ago
by Rolv-Apneseth