Initial commit

This commit is contained in:
2025-10-16 22:53:27 +09:00
commit 8d505c6fea
10 changed files with 483 additions and 0 deletions

30
src/main.rs Normal file
View File

@@ -0,0 +1,30 @@
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(())
}