Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/Roots/Acorn/Console/Commands/AboutCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,29 @@

class AboutCommand extends BaseCommand
{
/**
* The console command signature.
*
* @var string
*/
protected $signature = 'about {--only= : The section to display}
{--json : Output the information as JSON}
{--format= : The output format (table, json)}';

/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
if ($this->option('format') === 'json') {
$this->input->setOption('json', true);
}

return parent::handle();
}

protected function gatherApplicationInformation()
{
parent::gatherApplicationInformation();
Expand Down