def command(function):
def decorate(*args, **kwargs):<EOL><INDENT>exit_code = <NUM_LIT:1><EOL>try:<EOL><INDENT>exit_code = function(*args, **kwargs)<EOL><DEDENT>except Exception as e:<EOL><INDENT>if str(e):<EOL><INDENT>click.secho('<STR_LIT>' + str(e), fg='<STR_LIT>')<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>return exit_code<EOL><DEDENT><DEDENT>return decorate<EOL>
Command decorator