Mercurial > mozilla > hg > talosnames
comparison talosnames/main.py @ 12:a4aa9f83e3be
adding a thing for commands
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 10 Jul 2012 17:01:05 -0700 |
parents | 1029ddf7b806 |
children | 323a01abd180 |
comparison
equal
deleted
inserted
replaced
11:b7b59561be5e | 12:a4aa9f83e3be |
---|---|
25 | 25 |
26 def tbpl(self, name): | 26 def tbpl(self, name): |
27 """give TBPL name given the buildbot config name""" | 27 """give TBPL name given the buildbot config name""" |
28 return self.api.tbpl_name(name) | 28 return self.api.tbpl_name(name) |
29 | 29 |
30 def suites(self): | |
31 """list the buildbot suites""" | |
32 suites = sorted(self.api.suites.keys()) | |
33 return suites | |
34 | |
35 def command(self, suite): | |
36 """returns the command that buildbot runs for a particular suite""" | |
37 | |
38 def tests(self): | |
39 pass | |
40 | |
30 def main(args=sys.argv[1:]): | 41 def main(args=sys.argv[1:]): |
31 parser = CommandParser(TalosNamesCLI) | 42 parser = CommandParser(TalosNamesCLI) |
32 parser.invoke(sys.argv[1:]) | 43 parser.invoke(sys.argv[1:]) |
33 | 44 |
34 if __name__ == '__main__': | 45 if __name__ == '__main__': |