reaganmcf / lightmon

A lightweight, cross-platform, language-agnostic "run code on file change" tool, inspired by Nodemon
GNU General Public License v3.0
15 stars 2 forks source link

Cargo subcommands #24

Closed reaganmcf closed 3 years ago

reaganmcf commented 3 years ago

Closes #19

Implementation is much expressive than initially discussed in the issue.

lightmon will attempt to resolve the exec command to cargo run if src/main.rs is present, and cargo test if src/lib.rs is present.

However, you can specify the cargo sub command as well as pass any arguments very easily. For example, the following command will resolve the exec command as cargo build --bin my_bin:

lightmon rust build --bin my_bin