source: trunk/moap/command/code.py @ 126

Revision 126, 719 bytes checked in by thomas, 6 years ago (diff)
  • moap/command/bug.py:
  • moap/command/code.py:
  • moap/command/doap.py: pychecker fixes
Line 
1# -*- Mode: Python -*-
2# vi:si:et:sw=4:sts=4:ts=4
3
4import sys
5
6from moap.util import util, mail
7
8class Develop(util.LogCommand):
9    summary = "develop code"
10    description = """This command develops the code for you."""
11
12    def handleOptions(self, options):
13        self.options = options
14
15    def do(self, args):
16        sys.stderr.write(
17            'You are missing the hal-readmind package.\n'
18            'Please install and retry.\n')
19        return 3
20
21class Test(util.LogCommand):
22    summary = "test code you've written"
23
24    def do(self, args):
25        print "Yes, you should."
26        return 0
27
28class Code(util.LogCommand):
29    description = "do things to the code"
30    subCommandClasses = [Develop, Test]
Note: See TracBrowser for help on using the repository browser.