Skip to content

Commit

Permalink
Updated Sample App
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Aug 21, 2023
1 parent f85813a commit 94c816e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions example/app/app
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env php
<?php
require "app.php";

5 changes: 4 additions & 1 deletion example/app/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
use webfiori\cli\Runner;

$runner = new Runner();

$runner->register(new HelpCommand());
$runner->register(new HelloWorldCommand());
$runner->register(new OpenFileCommand());
$runner->start();
$runner->setDefaultCommand('help');

exit($runner->start());

0 comments on commit 94c816e

Please sign in to comment.