monolith/src
rhysd 4e4ebe9c98 refactor main to address several issues
Addressed issues:

- when specified URL is invalid, it exited successfully with doing
  nothing. There was no way why it does not work for users
- it exited successfully even if invalid User-Agent value is specified
- it created file twice on `--output` option specified. It may cause an
  issue when some file watcher (e.g. FsEvents on macOS) is watching

Improvements:
- handle errors with `Result::expect` consistently it correctly exits
  with non-zero status on error
- define `Output` enum for handling both stdout and file outputs
2020-01-15 16:52:20 +09:00
..
tests upgrade reqwest to v0.10.0 2020-01-07 14:22:32 +09:00
args.rs prefer unwrap_or_default to unwrap_or 2020-01-04 07:58:29 +09:00
html.rs remove . in line comment 2020-01-13 23:47:07 +09:00
http.rs upgrade reqwest to v0.10.0 2020-01-07 14:22:32 +09:00
js.rs reduce allocation on checking DOM attributes and do not hard-code number of elements of array constant 2020-01-04 07:52:47 +09:00
lib.rs migrate to Rust 2018 2020-01-03 00:33:49 +09:00
macros.rs implement str!() macro 2019-12-11 01:36:14 -05:00
main.rs refactor main to address several issues 2020-01-15 16:52:20 +09:00
utils.rs upgrade reqwest to v0.10.0 2020-01-07 14:22:32 +09:00