Shell of commit command
[mw] / src / mw / clicommands.py
index 3c0b4482989d534af81a2d89c5ffa1f08a4a7441..fd5e69cdd05dc709a696e0ce08bf4db39bf7d3bb 100644 (file)
@@ -148,3 +148,13 @@ class DiffCommand(CommandBase):
                 print self.metadir.diff_rv_to_working(
                     mw.api.filename_to_pagename(file[:-5])
                 ),
                 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()

Benjamin Mako Hill || Want to submit a patch?