X-Git-Url: https://projects.mako.cc/source/mw/blobdiff_plain/2c712c501ee2e538d09ad94cf25c5749471c7bfd..4a2642fa810e9b20e20d0b41029c2521bc6752eb:/src/mw/clicommands.py diff --git a/src/mw/clicommands.py b/src/mw/clicommands.py index 3c0b448..5eab8bd 100644 --- a/src/mw/clicommands.py +++ b/src/mw/clicommands.py @@ -148,3 +148,14 @@ class DiffCommand(CommandBase): print self.metadir.diff_rv_to_working( mw.api.filename_to_pagename(file[:-5]) ), + + +class CommitCommand(CommandBase): + + def __init__(self): + CommandBase.__init__(self, 'commit', 'commit changes to wiki') + self.shortcuts.append('ci') + + def _do_command(self): + self._die_if_no_init() + self._api_setup()