OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The LUCI Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
5 | 5 |
6 """Client tool to trigger tasks or retrieve results from a Swarming server.""" | 6 """Client tool to trigger tasks or retrieve results from a Swarming server.""" |
7 | 7 |
8 __version__ = '0.8.5' | 8 __version__ = '0.8.5' |
9 | 9 |
10 import collections | 10 import collections |
11 import datetime | 11 import datetime |
12 import json | 12 import json |
13 import logging | 13 import logging |
14 import optparse | 14 import optparse |
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1525 def main(args): | 1525 def main(args): |
1526 dispatcher = subcommand.CommandDispatcher(__name__) | 1526 dispatcher = subcommand.CommandDispatcher(__name__) |
1527 return dispatcher.execute(OptionParserSwarming(version=__version__), args) | 1527 return dispatcher.execute(OptionParserSwarming(version=__version__), args) |
1528 | 1528 |
1529 | 1529 |
1530 if __name__ == '__main__': | 1530 if __name__ == '__main__': |
1531 fix_encoding.fix_encoding() | 1531 fix_encoding.fix_encoding() |
1532 tools.disable_buffering() | 1532 tools.disable_buffering() |
1533 colorama.init() | 1533 colorama.init() |
1534 sys.exit(main(sys.argv[1:])) | 1534 sys.exit(main(sys.argv[1:])) |
OLD | NEW |