mirror of https://github.com/pypa/hatch.git
30 lines
581 B
Python
30 lines
581 B
Python
import click
|
|
|
|
CONTEXT_SETTINGS = {
|
|
'help_option_names': ['-h', '--help'],
|
|
}
|
|
UNKNOWN_OPTIONS = {
|
|
'ignore_unknown_options': True,
|
|
**CONTEXT_SETTINGS
|
|
}
|
|
|
|
|
|
def echo_success(text, nl=True):
|
|
click.secho(text, fg='cyan', bold=True, nl=nl)
|
|
|
|
|
|
def echo_failure(text, nl=True):
|
|
click.secho(text, fg='red', bold=True, nl=nl)
|
|
|
|
|
|
def echo_warning(text, nl=True):
|
|
click.secho(text, fg='yellow', bold=True, nl=nl)
|
|
|
|
|
|
def echo_waiting(text, nl=True):
|
|
click.secho(text, fg='magenta', bold=True, nl=nl)
|
|
|
|
|
|
def echo_info(text, nl=True):
|
|
click.secho(text, bold=True, nl=nl)
|