Skip to content

Instantly share code, notes, and snippets.

@aubricus
Created Feb 14, 2013
Embed
What would you like to do?
print message utility function for fabric tasks
from utils import print_message
@task
def foo():
print_message('foo executed', 'green')
from fabric import colors
def print_message(message, color='white'):
color = getattr(colors, color)
print(
color(message, bold=True)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment