-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb09e37
commit d292c35
Showing
40 changed files
with
1,488 additions
and
198 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,43 @@ | ||
use clap::Command; | ||
|
||
use crate::{ | ||
context::Context, | ||
error::Error, | ||
executor::Executor, | ||
modules::{pbo::Collapse, Hooks, Rapifier, SQFCompiler}, | ||
report::Report, | ||
}; | ||
|
||
#[must_use] | ||
pub fn cli() -> Command { | ||
Command::new("check").about("Check the project for errors") | ||
} | ||
|
||
/// Execute the dev command | ||
/// | ||
/// # Errors | ||
/// [`Error`] depending on the modules | ||
pub fn execute() -> Result<Report, Error> { | ||
let ctx = Context::new( | ||
std::env::current_dir()?, | ||
"check", | ||
crate::context::PreservePrevious::Remove, | ||
true, | ||
)?; | ||
|
||
let mut executor = Executor::new(ctx); | ||
|
||
executor.collapse(Collapse::Yes); | ||
|
||
executor.add_module(Box::<Hooks>::default()); | ||
executor.add_module(Box::<Rapifier>::default()); | ||
executor.add_module(Box::<SQFCompiler>::default()); | ||
|
||
info!("Running checks"); | ||
|
||
executor.init(); | ||
executor.check(); | ||
executor.build(false); | ||
|
||
executor.run() | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pub mod build; | ||
pub mod check; | ||
pub mod dev; | ||
pub mod launch; | ||
pub mod new; | ||
|
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
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
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
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 |
---|---|---|
@@ -1 +1,7 @@ | ||
pub mod sae1_require_version; | ||
|
||
pub mod saa1_if_assign; | ||
pub mod saa2_find_in_str; | ||
pub mod saa3_typename; | ||
pub mod saa4_str_format; | ||
pub mod saa5_select_parse_number; |
Oops, something went wrong.