mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 19:55:03 +01:00
check formatting
This commit is contained in:
parent
1172ce0709
commit
1ef7b906ad
6 changed files with 52 additions and 15 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use std::path::PathBuf;
|
||||
|
||||
mod check_fmt;
|
||||
mod codegen;
|
||||
mod fmt;
|
||||
mod test_js;
|
||||
|
|
@ -21,6 +22,8 @@ enum Commands {
|
|||
TestJs,
|
||||
/// Format all code
|
||||
Fmt,
|
||||
/// Check the formatting
|
||||
CheckFmt,
|
||||
}
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
|
|
@ -30,6 +33,7 @@ fn main() -> anyhow::Result<()> {
|
|||
Commands::Generate => codegen::main(),
|
||||
Commands::TestJs => test_js::main(),
|
||||
Commands::Fmt => fmt::main(),
|
||||
Commands::CheckFmt => check_fmt::main(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue