@cli.command()
def colordemo():
 for color in ('red', 'green', 'blue'):
  click.echo(click.style(('I am colored %s' % color), fg=color))
  click.echo(click.style(('I am background colored %s' % color), bg=color))

@ cli . command ( ) def colordemo ( ) : for color in ( 'red' , 'green' , 'blue' ) : click . echo ( click . style ( ( 'I am colored %s' % color ) , fg = color ) ) click . echo ( click . style ( ( 'I am background colored %s' % color ) , bg = color ) )
demonstrates ansi color support .