bin/render
#!/usr/bin/env php
<?php
use Workflux\Builder\YamlStateMachineBuilder;
use Workflux\Renderer\DotGraphRenderer;
require dirname(__DIR__) . '/vendor/autoload.php';
if (count($argv) < 2) {
return;
}
echo (new DotGraphRenderer)->render((new YamlStateMachineBuilder($argv[1]))->build()) . PHP_EOL;