notflan / sever

Coerce hardlinks to their own files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sever

Coerce hardlinks into new files

Usage

Basic usage is simple:

$ sever file1 file2 file3 dir/*

Logging

To change the verbosity level of output messages, set the RUST_LOG env var:

  • trace: Most verbose. Show information about files as they’re processed and redundant failures
  • debug: Verbose. Show all errors and their causes
  • info: The default level. Just show completions/failures
  • warn: Just show warnings
  • error: Just show errors

Features

The sever binary has no flags. Instead, it comes with compile-time feature flags that can be enabled when building:

FlagDescriptionDefault
parallelProcess files in parallelOn
threadsProcess files with a multi-threaded schedulerOff
limit-concurrencyApply a max limit (default 4096) of concurrent operationOn
recursiveAllow processing of directories by recursing through themOn
limit-recursionApply a max depth of recursion (default 256)On
splashPrint program’s compiled information when ran with no argumentsOn
paranoid-dedupUse SHA256 for argument dedup instead of basic hashingOff

Building

To build with default features, run:

$ cargo build --release
$ strip target/release/sever 

The binary will be built to target/release/sever

Building with non-default features

To build with your desired features, run:

$ cargo build --release --no-default-features --features feature1,feature2,feature3,...
$ strip target/release/sever 

The binary will be built to target/release/sever

License

GPL’d with <3

About

Coerce hardlinks to their own files

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%