You can define any custom commands you want by putting them into `config.nims` 
at the root of your project. For example, this is what I have in NimYAML:
    
    
    task tests, "Run all tests":
      --r
      --verbosity:0
      setCommand "c", "test/tests"
    

This basically tells Nim to execute `nim c -r --verbosity:0 test/tests` when I 
type in `nim tests`. If you want to run tests in multiple files with one 
command, you can do:
    
    
    task tests, "Run all tests":
      exec r"nim c -r someFile"
      exec r"nim c -r anotherFile"
      setCommand "nop"
    

Reply via email to