Пример #1
0
def print_config_table():
    from rich.table import Table

    from localstack import config

    grid = Table(show_header=True)
    grid.add_column("Key")
    grid.add_column("Value")

    for key, value in config.collect_config_items():
        grid.add_row(key, str(value))

    console.print(grid)
Пример #2
0
def print_config_pairs():
    from localstack import config

    for key, value in config.collect_config_items():
        console.print(f"{key}={value}")
Пример #3
0
def print_config_dict():
    from localstack import config

    console.print(dict(config.collect_config_items()))
Пример #4
0
def print_config_json():
    import json

    from localstack import config

    console.print(json.dumps(dict(config.collect_config_items())))