synek317 / shellfn

Rust proc macro for easily and safely use shell scripts in rust
MIT License
208 stars 4 forks source link

Add requirements #15

Open synek317 opened 2 years ago

synek317 commented 2 years ago

E.g.

#[shell requirements="xmlstarlet"]
fn foo(...) { ... }

or maybe?

#[shell]
fn foo(...) {
  shell::requires("xmlstarlet");
  ...
}

should check if xmlstarlet is present and if not, asks for permission and installs it