diff --git a/nullptr/commander.py b/nullptr/commander.py index cb2c3e6..f9141cb 100644 --- a/nullptr/commander.py +++ b/nullptr/commander.py @@ -88,7 +88,15 @@ class Commander(CommandLine): r = self.api.list_systems(int(page)) pprint(self.api.last_meta) - + def do_stats(self): + total = 0 + for t in self.store.data: + num = len(self.store.data[t]) + nam = t.__name__ + total += num + print(f'{num:5d} {nam}') + print(f'{total:5d} total') + def do_waypoints(self, system_str=''): if system_str == '': if not self.has_ship(): return