Jaspaul/laravel-rollout

View on GitHub
src/Console/CreateCommand.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Jaspaul\LaravelRollout\Console;

class CreateCommand extends RolloutCommand
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'rollout:create {feature}';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Creates a feature with the provided name.';

    /**
     * Creates the provided feature.
     *
     * @return void
     */
    public function handle()
    {
        $name = $this->argument('feature');
        $this->renderFeatureAsTable($name);
    }
}