- fetching hosts files
- merging hosts files
- removing duplicate lines
- cli options
- colored output messages
- replace with /etc/hosts(i think this should be done manually though)
Only binaries for x86_64-unknown-linux-gnu and x86_64-unknown-linux-musl are available for now.
These binaries are created using github actions and woodpecker ci.
$ cargo install hc-rs$ git clone https://github.com/XDream8/hc-rs
$ cd hc-rs
$ cargo build --profile optimized
$ ./target/optimized/hc-rs
$ hc-rs -h
$ hc-rs <flags> <urls>
$ hc-rs <subcommand> ...- 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.nluse --remove-duplicates(-r) flag to remove duplicate lines from the downloaded content/hosts
$ hc-rs -rI added a subcommand just for this purpose
$ hc-rs rmd <files>use --output(-o) flag to set output filename
default filename is "hosts"
$ hc-rs -o new-hostsuse --ignore-errors(-i) flag to ignore fetching errors and don't exit
$ hc-rs -i https://example.com/examplealias create-hosts='hc-rs -r https://badmojr.github.io/1Hosts/Pro/hosts.txt https://hosts.oisd.nl'