Matthias
41b82cb459
Add support and tests for .markdown files ( #152 )
2021-02-21 09:48:44 +01:00
Matthias
b8f24bfa3b
Merge pull request #145 from lycheeverse/simple-client
...
Improve lychee ergonomics
2021-02-19 17:56:55 +01:00
dependabot-preview[bot]
5cfff40e0a
Bump check-if-email-exists from 2bbcd75 to 346a85a ( #144 )
2021-02-19 13:25:17 +01:00
Matthias
252ac4761a
Merge pull request #148 from lycheeverse/dependabot/cargo/reqwest-0.11.1
...
Bump reqwest from 0.11.0 to 0.11.1
2021-02-19 12:31:18 +01:00
Matthias
4a106a2e47
Merge pull request #147 from lycheeverse/dependabot/cargo/url-2.2.1
...
Bump url from 2.2.0 to 2.2.1
2021-02-19 12:31:00 +01:00
dependabot-preview[bot]
6c1bc8fe39
Bump reqwest from 0.11.0 to 0.11.1
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.0...v0.11.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-19 06:56:01 +00:00
dependabot-preview[bot]
fbab3c9b71
Bump url from 2.2.0 to 2.2.1
...
Bumps [url](https://github.com/servo/rust-url ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.2.0...v2.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-19 06:55:28 +00:00
Matthias Endler
678dc4f18e
Add support for colored output
2021-02-19 00:41:49 +01:00
Matthias Endler
a4b1609424
Improve progress visualization
2021-02-19 00:23:35 +01:00
Matthias Endler
1a95aa4a44
Format
2021-02-19 00:05:14 +01:00
Matthias Endler
69e3b2cffc
Formatting
2021-02-18 23:33:26 +01:00
Matthias Endler
59c6093c8a
Formatting
2021-02-18 23:33:14 +01:00
Matthias Endler
5226cd10aa
Change exclude behavior to make includes more intuitive
...
Previously an include alone would not mean that only the included
patterns were checked. Only if an exclude was given as well,
the includes would make a difference. Now, the includes on their
own will work as expected.
Moved the exlude methods into the Exclude mod.
Also changed the order of exclude tests to do the fast lookup
ones before the regex ones.
Added tests to guarantee behavior in the future.
2021-02-18 21:42:00 +01:00
Matthias Endler
fe5cea1de3
Add doc-comment tests
2021-02-18 11:14:00 +01:00
Matthias Endler
16cd67331a
Add simple, standalone client
...
Adds a new function `lychee::check()`, which removes
a lot of boilerplate for simple cases. Adjusted the code,
tests, and documentation.
The downside is that `check` now returns a Result, so
we have to use `?` to get to the response. That's because
we have to account for the case where the given string is
not a valid URI.
2021-02-18 01:32:48 +01:00
Matthias
ae2d02b8a0
Merge pull request #143 from lycheeverse/input-source
...
Show input source in status output
2021-02-17 15:03:49 +01:00
Matthias Endler
737f6d3c3b
Update help message
2021-02-17 13:54:41 +01:00
Matthias Endler
7a4ed41b27
Fix test after switching to pretty JSON output
2021-02-17 12:32:29 +01:00
Matthias Endler
867a9ac31a
Collapse output conditions
2021-02-17 12:32:17 +01:00
Matthias Endler
0db81e27d6
Bump version
2021-02-17 12:22:39 +01:00
Matthias Endler
8e5799a041
Always display output in the expected format
...
Even on stdout we print JSON now if `--format json` is set.
The reason is that not outputting any JSON when the format
is requested can be unintuitive. It is also great for debugging
purposes before sending the output to a file
with the `--output` argument.
2021-02-17 12:22:31 +01:00
Matthias Endler
0872604f18
Clean up program output
...
Use response.to_string instead of custom status_message function
2021-02-17 12:20:51 +01:00
Matthias Endler
751deeb9b9
Show failure reason in status output
...
Use HashSet<Response> instead of Vec<Uri> for status output
2021-02-17 12:18:56 +01:00
Matthias Endler
8173e9927f
Be more explicit about supported output formats
2021-02-17 12:17:45 +01:00
Matthias Endler
d16e4fa1bc
Implement Serialize and Display for Status
2021-02-17 12:13:49 +01:00
Matthias Endler
b7bdfa6890
Add helper methods for Status
2021-02-17 12:13:32 +01:00
Matthias Endler
8e15bfb0be
Implement Display and Serialize for Response
2021-02-17 12:12:37 +01:00
Matthias Endler
7859cb17c6
Cleanup unused deserialize
2021-02-17 12:11:51 +01:00
Matthias Endler
d9adfbf80f
Add support for serializing input
2021-02-17 12:11:28 +01:00
Matthias Endler
d6b960368a
Adjust tests
2021-02-17 12:10:57 +01:00
Matthias Endler
4faf40cfba
Move check functions closer together
2021-02-17 01:01:43 +01:00
Matthias Endler
e859f1290e
Correct matches for fail_map and add test
2021-02-16 01:21:45 +01:00
Matthias Endler
428df23c1c
Fix lints and test on Linux
2021-02-16 00:53:01 +01:00
Matthias Endler
54e1d3e078
Simplify tests
2021-02-16 00:35:59 +01:00
Matthias Endler
4bec47904e
Show input source in status output
...
If an error occurs during link checking,
it is important to know where the error occured.
Therefore the request and response objects now contain a the input
source as a field. This makes error tracking easier.
2021-02-16 00:15:14 +01:00
Matthias
a633afc6b9
Use lychee master for link checking
2021-02-15 11:21:29 +01:00
dependabot-preview[bot]
c7b2b9e805
Bump linkify from 0.4.0 to 0.5.0 ( #141 )
...
Bumps [linkify](https://github.com/robinst/linkify ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/robinst/linkify/releases )
- [Changelog](https://github.com/robinst/linkify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/robinst/linkify/compare/0.4.0...0.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-15 10:04:02 +01:00
dependabot-preview[bot]
98c603670d
Bump check-if-email-exists from 37e398d to 2bbcd75 ( #142 )
...
Bumps [check-if-email-exists](https://github.com/reacherhq/check-if-email-exists ) from `37e398d` to `2bbcd75`.
- [Release notes](https://github.com/reacherhq/check-if-email-exists/releases )
- [Commits](37e398d6c6...2bbcd75ced )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-15 10:02:21 +01:00
Matthias
75e2f32fac
Fix issues with some dependencies ( #140 )
...
* Try to make lychee buildable for Apple Silicon (ring)
* Fix issues with old tokio 0.2 deps (async_smtp)
2021-02-12 22:34:41 +01:00
Matthias
5401e3a3d9
Update lychee action to latest version
2021-02-12 18:19:25 +01:00
Matthias
702909c4ab
Mailto support ( #138 )
...
* Add mailto suport and use try_from for parsing URLs
* Cleanup and document code
2021-02-12 10:25:33 +01:00
Matthias
0b148bf5e6
Exclude e-mails from being checked ( #137 )
...
This can be useful in CI environments where SMTP is not allowed.
2021-02-10 11:58:04 +01:00
Paweł Romanowski
4d5b98978c
Mention GitHub Action in README.md ( #135 )
...
Also mention GitHub token in TROUBLESHOOTING.md
2021-02-08 12:18:50 +01:00
Paweł Romanowski
836f557829
Ensure destructors are ran before std::process::exit ( #134 )
...
See comments in code for more details.
2021-02-08 11:04:01 +01:00
dependabot-preview[bot]
a5db490066
Bump serde_json from 1.0.61 to 1.0.62
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.61...v1.0.62 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-08 07:22:53 +00:00
dependabot-preview[bot]
20f962b490
Bump tokio from 1.1.1 to 1.2.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.1.1...tokio-1.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-08 07:14:16 +00:00
Matthias
8cc6d59587
Be more explicit about license in docs
2021-02-02 14:32:19 +01:00
dependabot-preview[bot]
07a0f99412
Bump assert_cmd from 1.0.2 to 1.0.3
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases )
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v1.0.2...v1.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 06:53:09 +00:00
dependabot-preview[bot]
5c582bbe6d
Bump predicates from 1.0.6 to 1.0.7
...
Bumps [predicates](https://github.com/assert-rs/predicates-rs ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/assert-rs/predicates-rs/releases )
- [Changelog](https://github.com/assert-rs/predicates-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/predicates-rs/compare/v1.0.6...v1.0.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-01 07:24:33 +00:00
dependabot-preview[bot]
683d4d32ea
Bump tokio from 1.1.0 to 1.1.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.1.0...tokio-1.1.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-01 07:24:20 +00:00