(tags: typing.Dict, sep: int)
return table
Helper method to create a table from dictionary of image tags -- used by info cli
Helper method to create a table from dictionary of image tags -- used by info cli
Helper method to create a table from dictionary of image tags -- used by info cli
def create_tag_table(tags: typing.Dict, sep: int) -> str:
    """Helper method to create a table from dictionary of image tags -- used by info cli"""
    table = ""
    for idx, (k, v) in enumerate(tags.items()):
        name = f"{k}:"
        row = f"{click.style(name, bold=True):<{sep}} {v}"
        if idx + 1 != len(tags):
            row += "\n    "
        table += row
    return table
def create_tag_table ( tags : typing . Dict , sep : int ) -> str : table = "" for idx , ( k , v ) in enumerate ( tags . items ( ) ) : name = f"{k}:" row = f"{click.style(name, bold=True):<{sep}} {v}" if idx + 1 != len ( tags ) : row += "\n    " table += row return table