this is a WIP
- fetching hosts files
- merging hosts files
- removing duplicate lines
- cli options
- colored output messages
- configuration file
- replace with /etc/hosts(i think this should be done manually though)
$ git clone https://github.com/XDream8/hc-rs
$ cd hc-rs
$ cargo build --profile optimized
$ ./target/optimized/hc-rs
$ hc-rs -h
$ hc-rs <urls> <flags>
- pass urls directly to hc-rs
- you can pass as much urls as you want to
$ hc-rs https://badmojr.github.io/1Hosts/Pro/hosts.txt https://hosts.oisd.nl
use --remove-duplicates(-r) flag to remove duplicate lines from the final file
$ hc-rs -r
use --output(-o) flag to set output filename
default filename is "hosts"
$ hc-rs -o new-hosts
use --minimal(-m) flag to create a small hosts file
$ hc-rs -m
use --ignore-errors(-i) flag to ignore fetching errors and don't exit
$ hc-rs -i https://example.com/example
alias create-hosts='hc-rs -r https://badmojr.github.io/1Hosts/Pro/hosts.txt https://hosts.oisd.nl'