import inquirer from "inquirer";
import {exec} from "child_process";


const CLIChoices = [
  {
    name : "Verbose, simple with embedded processing",
    value : "--config ./tests/dev.config.js ./tests/samples/ -v 4"
  },
  {
    name : "Verbose with embedded processing and plugin parser",
    value : "--config ./tests/devfile.config.js ./tests/samples/ -v 4"
  }
];

inquirer.prompt([{
  type: "list",
  name: "CLI",
  message: "Which environnement do you want to load ?",
  choices: CLIChoices
}], function(selection) {

  console.log("\n","npm start -- "+selection.CLI,"\n");

  const codemetricsProcess = exec("npm start -- "+selection.CLI);
  codemetricsProcess.stdout.pipe(process.stdout);
  codemetricsProcess.stderr.pipe(process.stderr);


});

@@ -112,16 +112,8 @@
 bose
-, simple
  wit
@@ -133,16 +133,34 @@
 ocessing
+ and plugin parser
 %22,%0A    v
@@ -187,16 +187,20 @@
 ests/dev
+file
 .config.
@@ -210,32 +210,35 @@
 ./tests/samples/
+*.*
  -v 4%22%0A  %7D,%0A  %7B%0A
@@ -248,32 +248,40 @@
  name : %22Verbose
+, simple
  with embedded p
@@ -289,34 +289,16 @@
 ocessing
- and plugin parser
 %22,%0A    v
@@ -317,36 +317,32 @@
 nfig ./tests/dev
-file
 .config.js ./tes

patch to work with windows