Skip to content

Syntax

Full Example
@main

#link rust
#pragma build build

Task build:[test] {
  rust.build;
  print_file("Cargo.toml");
}

Task test {
  working_dir(".");
  my_cmd;
  exec("cargo test");
}

cmddef my_cmd {
  print_file("Cargo.toml");
  set_env_var("var", "cont");
}

Namespace

@main

Pragma

#pragma test test
#pragma build build
#link rust
#link clang

Task

Task build:[test] {

} 
Task test {

}

Command Definiton

cmddef my_cmd {

}

Command Call

exec("cargo test");
print_file("Cargo.toml");
set_env_var("var", "cont");
my_cmd;
rust.build;