Example #1
0
def with_format(ctx):
    return pretty.formatted(
        with_header=ctx.parent.params['header'],
        fmt=ctx.parent.params['format'] or pretty.DEFAULT_FORMAT,
    )
Example #2
0
def with_format(ctx):
    return pretty.formatted(
        with_header=ctx.parent.params['header'],
        fmt=ctx.parent.params['format'] or pretty.DEFAULT_FORMAT,
    )
Example #3
0
def with_format(ctx):
    return pretty.formatted(
        with_header=ctx.parent.params["header"],
        fmt=ctx.parent.params["format"] or pretty.DEFAULT_FORMAT,
    )