pub/shortcuts/shortcuts.py
def make_shortcut(cmd):
    """return a function which runs the given cmd
    
    make_shortcut('ls') returns a function which executes
    envoy.run('ls ' + arguments)"""
    def _(cmd_arguments, *args, **kwargs):
        return run("%s %s" % (cmd, cmd_arguments), *args, **kwargs)
    return _
def make_shortcut(cmd):
    """return a function which runs the given cmd
    
    make_shortcut('ls') returns a function which executes
    envoy.run('ls ' + arguments)"""
    def _(cmd_arguments, *args, **kwargs):
        return run("%s %s" % (cmd, cmd_arguments), *args, **kwargs)
    return _
def make_shortcut ( cmd ) : def _ ( cmd_arguments , * args , * * kwargs ) : return run ( "%s %s" % ( cmd , cmd_arguments ) , * args , * * kwargs ) return _
return a function which runs the given cmd
    
    make_shortcut('ls') returns a function which executes
    envoy.run('ls ' + arguments)
return a function which runs the given cmd make_shortcut ( ls ) returns a function which executes envoy . run ( ls + arguments )