from __future__ import absolute_import
import click


def info(message, *args):
    if args:
        message = message % args
    click.echo(click.style(message, bold=True, fg='green'), err=True)


def error(message, *args):
    if args:
        message = message % args
    click.echo(click.style(message, bold=True, fg='red'), err=True)


def warn(message, *args):
    if args:
        message = message % args
    click.echo(click.style(message, fg='yellow'), err=True)
