The CLI owns the terminal now: TermProgress turns the library's Progress events into bars and spinners on stderr (hidden by indicatif when stderr is not a terminal). Named transfers (OCI layers, kernel, tarball) render as byte bars, extraction and initramfs as file-count spinners.
27 lines
622 B
TOML
27 lines
622 B
TOML
[package]
|
|
name = "ecr-cli"
|
|
description = "Enter chroot environments with Linux namespaces"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
|
|
# The installed binary keeps the `ecr` name even though the CLI package is
|
|
# `ecr-cli`; the library package owns the `ecr` name for consumers.
|
|
[[bin]]
|
|
name = "ecr"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
ecr = { path = "../ecr" }
|
|
|
|
# CLI parsing
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
|
|
# Error handling
|
|
anyhow = "1"
|
|
|
|
# Progress bar rendering of library progress events
|
|
indicatif = "0.18"
|