37 lines
811 B
PHP
37 lines
811 B
PHP
<?php namespace ZN\Console;
|
|
/**
|
|
* ZN PHP Web Framework
|
|
*
|
|
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
|
*
|
|
* @package ZN
|
|
* @license MIT [http://opensource.org/licenses/MIT]
|
|
* @author Ozan UYKUN [ozan@znframework.com]
|
|
*/
|
|
|
|
use ZN\Butcher;
|
|
|
|
/**
|
|
* @command extract-butcher-force
|
|
* @description extract-butcher-force [all|{name}] [title|lower|slug|normal|{name}]
|
|
*/
|
|
class ExtractButcherForce
|
|
{
|
|
/**
|
|
* Magic constructor
|
|
*
|
|
* @param string $command
|
|
* @param array $parameters
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($command, $parameters)
|
|
{
|
|
new Result((new Butcher)->extractForce
|
|
(
|
|
$command ?? 'all',
|
|
$parameters[0] ?? 'title',
|
|
$parameters[1] ?? 'project'
|
|
));
|
|
}
|
|
} |