Files
chainexec/src/main.rs
2025-10-16 22:53:27 +09:00

31 lines
575 B
Rust

use clap::Parser;
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
struct Args {
/// Enable pipefail
#[arg(short, long)]
pipefail: bool,
}
// TODO:
// Allow arbitrarily nested combinations of chaining commands
// Should support the following combinators:
// &&
// ||
// |
// |& (2>&1 |)
// ;
// !
// ( )
// <(command) and </file should also be supported somehow
// Ensure that input and output is streamed correctly
fn main() -> Result<(), Box<dyn std::error::Error>> {
let args = Args::parse();
Ok(())
}