Added check command and updated help
This commit is contained in:
+7
-4
@@ -13,7 +13,7 @@ fn main() {
|
||||
}
|
||||
|
||||
match args[1].as_str() {
|
||||
"run" | "build" | "r" | "b" => {
|
||||
"run" | "build" | "check" | "r" | "b" | "c" => {
|
||||
let (config, root) = transpiler::build();
|
||||
println!("");
|
||||
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!(" Follow us on github! \x1b[35mhttps://github.com/mist-go\x1b[0m\n");
|
||||
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!(
|
||||
" \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!(
|
||||
" \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 help\x1b[0m print this message\n");
|
||||
|
||||
Reference in New Issue
Block a user