intermodal fork (public API)
Go to file
Casey Rodarmor d1f8f24d8e
Add colored output
Colored output can be controlled on the command line with
`--use-color auto|always|never`. The default is `auto`, which enables
color if `imdl` detects that it is printing to a terminal.

Color can be disabled entirely by setting the `NO_COLOR` environment
variable.

type: added
2020-04-07 19:00:47 -07:00
.github/workflows Add colored output 2020-04-07 19:00:47 -07:00
src Add colored output 2020-04-07 19:00:47 -07:00
tmp Initial commit 2020-04-07 18:55:30 -07:00
.gitignore Initial commit 2020-04-07 18:55:30 -07:00
build.rs Initial commit 2020-04-07 18:55:30 -07:00
Cargo.lock Add colored output 2020-04-07 19:00:47 -07:00
Cargo.toml Add colored output 2020-04-07 19:00:47 -07:00
CONTRIBUTING Initial commit 2020-04-07 18:55:30 -07:00
justfile Configure clippy and lint on push 2020-04-07 18:55:45 -07:00
LICENSE Initial commit 2020-04-07 18:55:30 -07:00
README.md Add colored output 2020-04-07 19:00:47 -07:00
rustfmt.toml Initial commit 2020-04-07 18:55:30 -07:00

intermodal: a 40' shipping container for the Internet

Colored Output

Intermodal features colored help, error, and informational output. Colored output is disabled if Intermodal detects that it is not printing to a TTY.

To disable colored output, set the NO_COLOR environment variable to any valu or pass --use-color never on the command line.

To force colored output, pass --use-color always on the command line.

Semantic Versioning and Unstable Features

Intermodal follows semantic versioning.

In particular:

  • v0.0.X: Breaking changes may be introduced at any time.
  • v0.X.Y: Breaking changes may only be introduced with a minor version number bump.
  • vX.Y.Z: Breaking changes may only be introduced with a major version number bump

To avoid premature stabilization and excessive version churn, unstable features are unavailable unless the --unstable / -u flag is passed. Unstable features may be changed or removed at any time.

$ imdl torrent stats --input tmp
error: Feature `torrent stats subcommand` cannot be used without passing the `--unstable` flag
$ imdl --unstable torrent stats tmp
Torrents processed: 0
Read failed:        0
Decode failed:      0