init function

Future init(
  1. String projectDir,
  2. String layerDir,
  3. String name,
  4. bool overwrite, {
  5. double w = 2.0,
  6. double p = 0.5,
})

Runs INIT

Implementation

Future<dynamic> init(
    String projectDir, String layerDir, String name, bool overwrite,
    {double w = 2.0, double p = 0.5}) async {
  final or = (overwrite == true) ? "--overwrite" : "--no-overwrite";
  await main([
    "init",
    "-f",
    projectDir,
    "-l",
    layerDir,
    "-n",
    name,
    "-w",
    w.toString(),
    "-p",
    p.toString(),
    or,
    "--no-kill"
  ]);
}