shrink0r/workflux

View on GitHub
bin/render

Summary

Maintainability
Test Coverage
#!/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;