From: Ian Weller Date: Sun, 14 Mar 2010 06:06:21 +0000 (-0600) Subject: Shell of commit command X-Git-Url: https://projects.mako.cc/source/mw/commitdiff_plain/aaf7335e5cc3ad7a54311fd2f6aec76d6f42584c?ds=sidebyside Shell of commit command --- diff --git a/src/mw/clicommands.py b/src/mw/clicommands.py index 3c0b448..fd5e69c 100644 --- a/src/mw/clicommands.py +++ b/src/mw/clicommands.py @@ -148,3 +148,13 @@ 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') + + def _do_command(self): + self._die_if_no_init() + self._api_setup()