stdecor 0.2.1

Run a command with a decorated stdout/stderr
Documentation
// Copyright (C) 2026 Leandro Lisboa Penz <lpenz@lpenz.org>
// This file is subject to the terms and conditions defined in
// file 'LICENSE', which is part of this source code package.

use clap::Parser;

#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
pub struct Cli {
    /// Add a default prefix to both stdout and stderr
    #[arg(short, long, default_value = "")]
    pub prefix: String,

    /// Add the date and time as a prefix to both stdout and stderr
    #[arg(short, long, default_value_t = false)]
    pub date: bool,

    /// The command to run; use stdin if empty (pipe mode)
    pub command: Vec<String>,
}