31 lines
575 B
Rust
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(())
|
|
}
|