public function handle()
{
if ($this->argument('tag_name')) {
$this->comment('Tables tagged "' . $this->argument('tag_name') . '"');
foreach ($this->tags->get($this->argument('tag_name')) as $table) {
$this->line($table);
}
} else {
$this->comment('All Tags');
foreach ($this->tags->tags() as $tag) {
if ($this->option('tables')) {
$tables = implode(', ', $this->tags->get($tag));
$this->line("{$tag}: {$tables}");
} else {
$this->line($tag);
}
}
}
}