#!/usr/bin/env php add('Resume', $baseDir . '/src'); // Instantiate our Console application $console = new Resume\Cli\Resume(); // Fetch the version chdir($baseDir); $versionCmd = 'git describe --abbrev=0 --tags 2>/dev/null'; $version = trim(shell_exec($versionCmd)); chdir($cwd); // Fetch the project name and description $project = json_decode(file_get_contents(__DIR__ . '/../composer.json')); $project->version = $version; // Init the app with these params $console->initialize($templatePath, $consoleTemplatePath, $project); // Execute the console app. $console->run(); /* End of resume.php */