def show(format, full):
    """ Print current allocation to the console. """
    # load asset allocation
    app = AppAggregate()
    app.logger = logger
    model = app.get_asset_allocation()

    if format == "ascii":
        formatter = AsciiFormatter()
    elif format == "html":
        formatter = HtmlFormatter
    else:
        raise ValueError(f"Unknown formatter {format}")

    # formatters can display stock information with --full
    output = formatter.format(model, full=full)
    print(output)
def show ( format , full ) : app = AppAggregate ( ) app . logger = logger model = app . get_asset_allocation ( ) if format == "ascii" : formatter = AsciiFormatter ( ) elif format == "html" : formatter = HtmlFormatter else : raise ValueError ( f"Unknown formatter {format}" ) output = formatter . format ( model , full = full ) print ( output )
Print current allocation to the console.