all kinds of different language scripts

This commit is contained in:
Chris Cochrun 2024-07-18 17:20:07 -05:00
parent 5400f80b55
commit 2a76649221
8 changed files with 143 additions and 1 deletions

19
scripts/rusty.rs Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env -S nix shell "github:nix-community/fenix?rev=092bd452904e749efa39907aa4a20a42678ac31e#minimal.toolchain" -c cargo -q -Zscript
```cargo
[dependencies]
clap = { version = "4.2", features = ["derive"] }
```
use clap::Parser;
#[derive(Parser, Debug)]
#[clap(version)]
struct Args {
#[clap(short, long, help = "Path to config")]
config: Option<std::path::PathBuf>,
}
fn main() {
let args = Args::parse();
println!("{:?}", args);
}