Boilerplate CLI Tool
class MainCmd extends PhoreAbstractMainCmd
{
public function invoke(CliContext $context)
{
$opts = $context->getOpts("i:");
$context->dispatchMap([
"import" => new ImportCmd(),
"search" => new SearchCmd()
], $opts);
}
}
class SearchCmd extends PhoreAbstractCmd
{
public function invoke(CliContext $context)
{
$opts = $context->getOpts();
$context->ask("Do you want to continue?");
}
}