synek317 / shellfn

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

Support syntax checking #2

Open michaelmior opened 5 years ago

michaelmior commented 5 years ago

This is really cool! It would be helpful if there was a way to specify a command to check syntax that would run at build time. For example bash -n for bash. Could save a few cycles during development.

synek317 commented 5 years ago

Wonderful idea! I'm already experimenting with this. I'm going to start with bash, python and perl. What other langauges could be easily checked?

michaelmior commented 5 years ago

Ruby has ruby -c and Javascript has node -c.