mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-02-04 13:48:57 +00:00
Allows for user provided path option
This commit is contained in:
@@ -7,14 +7,16 @@ use Illuminate\Console\Command;
|
||||
|
||||
class Sync extends Command
|
||||
{
|
||||
protected $signature = 'data:sync';
|
||||
protected $signature = 'data:sync {--path=}';
|
||||
|
||||
protected $description = 'Update Models with respective sync data files';
|
||||
|
||||
public function handle()
|
||||
{
|
||||
$path = $this->option('path');
|
||||
|
||||
$this->info('Updating Models with sync data files');
|
||||
(new Updater)->run();
|
||||
(new Updater($path))->run();
|
||||
$this->comment('Data sync completed');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user