Initial commit
This commit is contained in:
30
src/main.rs
Normal file
30
src/main.rs
Normal 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(())
|
||||
}
|
||||
Reference in New Issue
Block a user