mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2026-01-02 19:17:22 +01:00
Added cli version number command
This commit is contained in:
45
app/Console/Commands/SpeedtestVersionCommand.php
Normal file
45
app/Console/Commands/SpeedtestVersionCommand.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class SpeedtestVersionCommand extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'speedtest:version';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Displays the version number of this instance';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->info('Speedtest Tracker');
|
||||
$this->info('Author: Henry Whitaker');
|
||||
$this->info('');
|
||||
$this->info('Installed version v' . config('speedtest.version'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user