add commands to readme
and re-name commands
This commit is contained in:
@@ -12,7 +12,7 @@ class CaptureDailyChange extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'daily-change:capture';
|
||||
protected $signature = 'capture:daily-change';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
|
||||
@@ -13,7 +13,7 @@ class RefreshDividendData extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'dividend-data:refresh';
|
||||
protected $signature = 'refresh:dividend-data';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
|
||||
@@ -13,7 +13,7 @@ class RefreshMarketData extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'market-data:refresh
|
||||
protected $signature = 'refresh:market-data
|
||||
{--force= : Ignore refresh delay}';
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,7 +13,7 @@ class RefreshSplitData extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'split-data:refresh
|
||||
protected $signature = 'refresh:split-data
|
||||
{--force= : Don\'t ask to confirm.}';
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\Holding;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class SyncDailyChange extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'sync:daily-change';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Re-calculates daily snapshots of your portfolio\'s daily performance. Use discretion as this is a resource intensive command.';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ class SyncHoldingData extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'holding-data:sync';
|
||||
protected $signature = 'sync:holdings';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
|
||||
Reference in New Issue
Block a user