OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Swarming Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed under the Apache License, Version 2.0 that | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # can be found in the LICENSE file. | 4 # 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.4' | 8 __version__ = '0.8.4' |
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 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 def main(args): | 1517 def main(args): |
1518 dispatcher = subcommand.CommandDispatcher(__name__) | 1518 dispatcher = subcommand.CommandDispatcher(__name__) |
1519 return dispatcher.execute(OptionParserSwarming(version=__version__), args) | 1519 return dispatcher.execute(OptionParserSwarming(version=__version__), args) |
1520 | 1520 |
1521 | 1521 |
1522 if __name__ == '__main__': | 1522 if __name__ == '__main__': |
1523 fix_encoding.fix_encoding() | 1523 fix_encoding.fix_encoding() |
1524 tools.disable_buffering() | 1524 tools.disable_buffering() |
1525 colorama.init() | 1525 colorama.init() |
1526 sys.exit(main(sys.argv[1:])) | 1526 sys.exit(main(sys.argv[1:])) |
OLD | NEW |