OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import 'package:args/args.dart'; |
| 6 import 'package:gardening/src/bot.dart'; |
| 7 import 'package:gardening/src/util.dart'; |
| 8 |
| 9 void help(ArgParser argParser) { |
| 10 print('Summarizes the current status of the build bot.'); |
| 11 print('Usage: summary [options]'); |
| 12 print(' where options are:'); |
| 13 print(argParser.usage); |
| 14 } |
| 15 |
| 16 main(List<String> args) async { |
| 17 ArgParser argParser = createArgParser(); |
| 18 ArgResults argResults = argParser.parse(args); |
| 19 processArgResults(argResults); |
| 20 var bot = new Bot(logdog: argResults['logdog']); |
| 21 var recentUris = bot.mostRecentUris; |
| 22 var results = await bot.readResults(recentUris); |
| 23 results.forEach((result) { |
| 24 if (result.hasFailures) { |
| 25 print("${result.buildUri} has failures."); |
| 26 } |
| 27 }); |
| 28 bot.close(); |
| 29 } |
OLD | NEW |