Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@ pub(crate) struct ProgressOptions {
///
/// Interactive progress will be written to this file descriptor as "JSON lines"
/// format, where each value is separated by a newline.
#[clap(long, hide = true)]
pub(crate) progress_fd: Option<RawProgressFd>,
///
/// The format is experimental and may be removed after a small deprecation period.
#[clap(long)]
pub(crate) json_fd: Option<RawProgressFd>,
}

impl TryFrom<ProgressOptions> for ProgressWriter {
type Error = anyhow::Error;

fn try_from(value: ProgressOptions) -> Result<Self> {
let r = value
.progress_fd
.json_fd
.map(TryInto::try_into)
.transpose()?
.unwrap_or_default();
Expand Down
Loading