Beispiel #1
0
def run(opt):
    if getattr(opt, 'text'):
        text = opt.text
    else:
        text = sys.stdin.read()

    box = Box(style_mapping[opt.style],
              width=opt.width, height=opt.height,
              align=opt.align, text=text)

    return box.render()