def main()

in scripts/triggers_vm_generator.py [0:0]


def main():
  parser = argparse.ArgumentParser()
  parser.add_argument(
      '--knife_binary', type=str, default='knife', help='knife-solo binary')
  args = parser.parse_args()

  listdir = get_solutions_list()

  with CreateThreadPoolAndWait() as pool:
    triggers_results = [
        pool.apply_async(generate_config, (solution, args.knife_binary))
        for solution in listdir
    ]

  triggers = [result.get() for result in triggers_results]

  print(yaml.dump_all(triggers, default_flow_style=False))