summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 68010472..0bdf5c82 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -433,6 +433,15 @@ class UI(object):
return urwid.AttrMap(columns, 'global_footer')
def apply_command(self, cmd):
+ """
+ applies a command
+
+ This calls the pre and post hooks attached to the command,
+ as well as :meth:`cmd.apply`.
+
+ :param cmd: an applicable command
+ :type cmd: :class:`~alot.commands.Command`
+ """
if cmd:
if cmd.prehook:
self.logger.debug('calling pre-hook')