(parent, function)
return _ExtCommand
Extend an existing command.
Extend an existing command.
Extend an existing command .
def extend_command(parent, function):
    """Extend an existing command."""

    class _ExtCommand(parent):
        def run(self):
            function(self)

    return _ExtCommand
def extend_command ( parent , function ) : class _ExtCommand ( parent ) : def run ( self ) : function ( self ) return _ExtCommand