@cli.command()
def pager():
    'Demonstrates using the pager.'
    lines = []
    for x in range(200):
        lines.append('{}. Hello World!'.format(click.style(str(x), fg='green')))
    click.echo_via_pager('\n'.join(lines))
Demonstrates using the pager.
@cli.command()
def pager():
    
    lines = []
    for x in range(200):
        lines.append('{}. Hello World!'.format(click.style(str(x), fg='green')))
    click.echo_via_pager('\n'.join(lines))