Package moap :: Package command :: Module code
[hide private]
[frames] | no frames]

Source Code for Module moap.command.code

 1  # -*- Mode: Python -*- 
 2  # vi:si:et:sw=4:sts=4:ts=4 
 3   
 4  import sys 
 5   
 6  from moap.util import util, mail 
 7   
8 -class 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 __pychecker__ = 'no-argsused' 17 sys.stderr.write( 18 'You are missing the hal-readmind package.\n' 19 'Please install and retry.\n') 20 return 3
21
22 -class Test(util.LogCommand):
23 summary = "test code you've written" 24
25 - def do(self, args):
26 __pychecker__ = 'no-argsused' 27 print "Yes, you should." 28 return 0
29
30 -class Code(util.LogCommand):
31 description = "do things to the code" 32 subCommandClasses = [Develop, Test]
33