add('FogBugz', __DIR__ . '/src'); // Instantiate our Console application $console = new FogBugz\Cli\Working(); // If we're running from phar, we get these values from the stub if (!defined("IN_PHAR")) { $project = json_decode(file_get_contents(__DIR__ . '/composer.json')); } // Config path can be set with a an ENV var $configFile = getenv("FOGBUGZ_CONFIG") ? getenv("FOGBUGZ_CONFIG") : getenv("HOME") . "/.fogbugz.yml"; $templatePath = __DIR__ . '/templates'; // Init the app with these params $console->initialize($configFile, $templatePath, $project); // Execute the console app. $console->run(); /* End of working.php */