#!/usr/bin/env php
<?php

use DTL\GherkinLint\GherkinLintContainer;
use DTL\GherkinLint\Model\ConfigLoader;
use DTL\GherkinLint\Model\ConfigMapper;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;

require __DIR__ . '/../vendor/autoload.php';

$input = new ArgvInput();
$output = new ConsoleOutput();
$config = ConfigLoader::create(
    $output->getErrorOutput(),
    getcwd()
)->load('gherkinlint.json');
$container = new GherkinLintContainer($output, $config, getenv('GHERKINLINT_DEV', true));
$container->application()->run($input, $output);




