Exemple #1
0
def print_fancy():
    click.clear()
    click_helper = ClickHelper()
    fancy_message = MessageMaker.factory('Fancy')

    if click_helper.yes_no('Would you like to see the default?'):
        fancy_message.print_message()

    fancy_message.my_message = click_helper.input_prompt('Type in the message you would like to display: ')

    if click_helper.yes_no('Would you like to choose the font?'):
        fancy_message.my_font = click_helper.input_prompt('Type in the font you want to use: ')

    fancy_message.print_message()
Exemple #2
0
def setup(message='Hello. Would you like to continue with setup?'):
    click.clear()
    welcome.setup_text()
    click_helper = ClickHelper()
    if click_helper.yes_no(message):
        click.echo('Setup complete.')
    else:
        click.echo('Setup canceled.')
Exemple #3
0
def print_simple(message):
    click_helper = ClickHelper()
    simple_message = MessageMaker.factory('Simple')

    if click_helper.yes_no('Would you like to see the default?'):
        simple_message.print_message()

    simple_message.my_message = message

    simple_message.print_message()