Implements #7

This commit is contained in:
distinctm
2019-01-24 17:27:30 -05:00
parent 24bb6b6d0a
commit 83c147ace9
2 changed files with 13 additions and 8 deletions

View File

@@ -7,16 +7,19 @@ use Illuminate\Console\Command;
class Sync extends Command
{
protected $signature = 'data:sync {--path=}';
protected $signature = 'data:sync {--path=} {--model=}';
protected $description = 'Update Models with respective sync data files';
public function handle()
{
$path = $this->option('path');
$model = $this->option('model');
$this->info('Updating Models with sync data files');
(new Updater($path))->run();
(new Updater($path, $model))->run();
$this->comment('Data sync completed');
}
}