Implement 'rojo build --watch' (#284)

* Refactor build command to reproduce model more easily

* Spawn ServeSession for building
This commit is contained in:
Lucien Greathouse 2020-03-08 17:48:14 -07:00 • committed by GitHub
parent 0187da5f24
commit 199a39208c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 10 deletions

View file

@ -140,6 +140,10 @@ pub struct BuildCommand {
/// Where to output the result.
#[structopt(long, short)]
pub output: PathBuf,
/// Whether to automatically rebuild when any input files change.
#[structopt(long)]
pub watch: bool,
}
impl BuildCommand {