Example #1
0
  | 2. Redistributions in binary form must reproduce the above copyright            |
  |    notice, this list of conditions and the following disclaimer in the          |
  |    documentation and/or other materials provided with the distribution.         |
  |                                                                                 |
  | 3. All advertising materials mentioning features or use of this software        |
  |    must display the following acknowledgement:                                  |
  |    This product includes software developed by César D. Rodas.                  |
  |                                                                                 |
  | 4. Neither the name of the César D. Rodas nor the                               |
  |    names of its contributors may be used to endorse or promote products         |
  |    derived from this software without specific prior written permission.        |
  |                                                                                 |
  | THIS SOFTWARE IS PROVIDED BY CÉSAR D. RODAS ''AS IS'' AND ANY                   |
  | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED       |
  | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE          |
  | DISCLAIMED. IN NO EVENT SHALL CÉSAR D. RODAS BE LIABLE FOR ANY                  |
  | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES      |
  | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;    |
  | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND     |
  | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT      |
  | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS   |
  | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE                     |
  +---------------------------------------------------------------------------------+
  | Authors: César Rodas <*****@*****.**>                                           |
  +---------------------------------------------------------------------------------+
*/
use Symfony\Component\Console\Application, Autoloader\CliApp, Autoloader\Generator;
require __DIR__ . "/vendor/autoload.php";
$cli = new crodas\cli\Cli();
$cli->addDirectory(__DIR__ . '/lib');
$cli->main();
Example #2
0
<?php

error_reporting(E_ALL);
ini_set('display_error', 'on');
require __DIR__ . "/app/boot.php";
$cli = new crodas\cli\Cli(__DIR__ . '/tmp/cli.php');
$cli->addDirectory(__DIR__ . '/vendor');
$cli->addDirectory(__DIR__ . '/app/cli');
$cli->main();
Example #3
0
File: cli.php Project: crodas/cli
<?php

require __DIR__ . '/../vendor/autoload.php';
$cli = new crodas\cli\Cli(".tmp");
//$cli->addDirectory(__DIR__ . '/../vendor');
$cli->addDirectory(__DIR__ . '/apps');
$cli->main();
Example #4
0
<?php

require __DIR__ . "/vendor/autoload.php";
$cli = new crodas\cli\Cli();
$cli->addDirectory(__DIR__ . '/src/');
$cli->main();