from typing import List

import click

from housekeeper.store import Store


@click.command()
@click.option('-t', '--tag', 'tags', multiple=True, help='filter by file tag')
@click.option('-v', '--version', type=int, help='filter by version of the bundle')
@click.option('--verbose', is_flag=True, help='print additional information')
@click.argument('bundle', required=False)
@click.pass_context
def get(context, tags: List[str], version: int, verbose: bool, bundle: str):
    """Get files."""
    store = Store(context.obj['database'], context.obj['root'])
    files = store.files(bundle=bundle, tags=tags, version=version)
    for file_obj in files:
        if verbose:
            tags = ', '.join(tag.name for tag in file_obj.tags)
            click.echo(f"{click.style(file_obj.id, fg='blue')} | {file_obj.full_path} | {tags}")
        else:
            click.echo(file_obj.full_path)

@@ -263,16 +263,22 @@
 .option(
+'-V', 
 '--verbo
@@ -773,16 +773,20 @@
 k.style(
+str(
 file_obj
@@ -788,16 +788,17 @@
 e_obj.id
+)
 , fg='bl
@@ -832,13 +832,66 @@
 %7D %7C 
-%7Btags
+%22%0A                       f%22%7Bclick.style(tags, fg='yellow')
 %7D%22)%0A

fix get command, verbose mode