Skip to content

Instantly share code, notes, and snippets.

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