Add SCRITCHER_RUNNER env var

Closes #13
This commit is contained in:
Luna 2020-04-10 00:01:23 -03:00
parent 8bb09f1573
commit 9614b96c71

View file

@ -104,8 +104,8 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void {
var runqs_args = langs.ArgList.init(allocator); var runqs_args = langs.ArgList.init(allocator);
defer runqs_args.deinit(); defer runqs_args.deinit();
// TODO change the runqs command to something given in an env var const wanted_runner: []const u8 = std.os.getenv("SCRITCHER_RUNNER") orelse "ristretto";
try runqs_args.append("ristretto"); try runqs_args.append(wanted_runner);
while (true) { while (true) {
lang.reset(); lang.reset();