]> git.ipfire.org Git - people/jschlag/pbs.git/blobdiff - src/scripts/pakfire-build-service
cli: Add command to send all emails
[people/jschlag/pbs.git] / src / scripts / pakfire-build-service
index fa7e4511181f71d01e040cfdab6a5bcebcf68c70..36d948d761748c5a937b6aea27fdc08c3ac848c8 100644 (file)
@@ -13,7 +13,10 @@ class Cli(object):
                # Initialise backend
                self.backend = pakfire.buildservice.Backend(*args, **kwargs)
 
-               self._commands = {}
+               self._commands = {
+                       # Sends all queued messages
+                       "process-message-queue" : self.backend.messages.process_queue,
+               }
 
        def __call__(self, *args):
                if not len(args) >= 2: