Added check command and updated help

This commit is contained in:
2026-05-19 06:24:35 +02:00
parent 9d051c68e9
commit a5ccd9651a
+7 -4
View File
@@ -13,7 +13,7 @@ fn main() {
} }
match args[1].as_str() { match args[1].as_str() {
"run" | "build" | "r" | "b" => { "run" | "build" | "check" | "r" | "b" | "c" => {
let (config, root) = transpiler::build(); let (config, root) = transpiler::build();
println!(""); println!("");
if builder::build(args, config, root) { if builder::build(args, config, root) {
@@ -44,12 +44,15 @@ fn print_usage() {
println!("󰖟 View our documentation! \x1b[35mhttps://mist.selimaj.dev\x1b[0m"); println!("󰖟 View our documentation! \x1b[35mhttps://mist.selimaj.dev\x1b[0m");
println!(" Follow us on github! \x1b[35mhttps://github.com/mist-go\x1b[0m\n"); println!(" Follow us on github! \x1b[35mhttps://github.com/mist-go\x1b[0m\n");
println!("usage:"); println!("usage:");
println!(" \x1b[36m mist run\x1b[0m run the project in the current directory\n"); println!(" \x1b[36m mist run\x1b[0m,\x1b[36m r\x1b[0m run the project in the current directory\n");
println!( println!(
" \x1b[36m mist build\x1b[0m build the project in the current directory\n" " \x1b[36m mist build\x1b[0m,\x1b[36m b\x1b[0m build the project in the current directory\n"
); );
println!( println!(
" \x1b[36m mist transpile\x1b[0m transpile the project in the current directory\n" " \x1b[36m mist transpile\x1b[0m,\x1b[36m t\x1b[0m transpile the project in the current directory\n"
);
println!(
" \x1b[36m mist check\x1b[0m,\x1b[36m c\x1b[0m check the project in the current directory\n"
); );
println!(" \x1b[36m mist version \x1b[0m print the compiler version\n"); println!(" \x1b[36m mist version \x1b[0m print the compiler version\n");
println!(" \x1b[36m mist help\x1b[0m print this message\n"); println!(" \x1b[36m mist help\x1b[0m print this message\n");