-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `-C` flag to build command * no-source-compression -> source-compression * Use enum instead of bool for command in tests * Use WitOptions in CodegenOptionsGroup * Make the linter happy
- Loading branch information
1 parent
2627a5e
commit 9641533
Showing
6 changed files
with
610 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use anyhow::Result; | ||
use javy_runner::{Builder, JavyCommand}; | ||
|
||
pub fn run_with_compile_and_build<F>(test: F) -> Result<()> | ||
where | ||
F: Fn(&mut Builder) -> Result<()>, | ||
{ | ||
test(Builder::default().command(JavyCommand::Compile))?; | ||
test(Builder::default().command(JavyCommand::Build))?; | ||
Ok(()) | ||
} |
Oops, something went wrong.