Go to file
Sierra 1a62a08478 Add README.md 2023-07-06 17:47:20 +00:00
src add default path 2022-12-21 19:00:08 -06:00
.gitignore Command runner project 2022-12-21 11:25:13 -06:00
Cargo.lock Command runner project 2022-12-21 11:25:13 -06:00
Cargo.toml Command runner project 2022-12-21 11:25:13 -06:00
README.md Add README.md 2023-07-06 17:47:20 +00:00
flake.lock Command runner project 2022-12-21 11:25:13 -06:00
flake.nix Command runner project 2022-12-21 11:25:13 -06:00
toolchain.nix Command runner project 2022-12-21 11:25:13 -06:00

README.md

Runner

Runner is a program to run multiple executables in parallel. I mostly use it to run a server program while also rebuilding a frontend in the background. The configuration for it is through a kdl file in the directory it is invoked from. Here's an example config file:

run "frontend" {
  path "frontend"
  command "npm"
  args "run" "dev" 
}

run "backend" {
  path "backend"
  command "cargo"
  args "run" "--color=always"
}

This builds a frontend through npm and a cargo server to actually run the backend server. It takes paths to run the commands in as their working directory, arguments are optional if not needed.