Skip to content

Commit

Permalink
List reachable unexplored systems in systems_explored
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Dec 14, 2023
1 parent 79f3a0f commit ca8857a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cli/bin/systems_explored.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ Future<void> command(FileSystem fs, ArgResults argResults) async {
final systemsWithCharts = reachableSystems
.where((s) => chartingCache.waypointsWithChartInSystem(s).isNotEmpty);
logger.info('${systemsWithCharts.length} reachable systems with charts.');

final unexploredSystems = reachableSystems
.where((s) => chartingCache.waypointsWithChartInSystem(s).isEmpty);
logger.info('${unexploredSystems.length} reachable systems unexplored:');
for (final system in unexploredSystems) {
logger.info(' $system');
}
}

void main(List<String> args) async {
Expand Down

0 comments on commit ca8857a

Please sign in to comment.