package com.danielflower.apprunner.runners;

import org.apache.commons.exec.CommandLine;

import java.util.Map;

public interface CommandLineProvider {
    CommandLineProvider lein_on_path = (Map<String, String> m) -> new CommandLine("lein");

    CommandLine commandLine(Map<String, String> envVarsForApp);
}

@@ -81,16 +81,61 @@
 andLine;
+%0Aimport org.apache.commons.lang3.SystemUtils;
 %0A%0Aimport
@@ -272,16 +272,57 @@
 andLine(
+SystemUtils.IS_OS_WINDOWS ? %22lein.bat%22 : 
 %22lein%22);

make it Windows friendly