using System; using System.Collections.Generic; using Pal.Client.DependencyInjection; namespace Pal.Client.Commands { internal sealed class PalStatsCommand : ISubCommand { private readonly StatisticsService _statisticsService; public PalStatsCommand(StatisticsService statisticsService) { _statisticsService = statisticsService; } public IReadOnlyDictionary> GetHandlers() => new Dictionary> { { "stats", _ => Execute() }, }; private void Execute() => _statisticsService.ShowGlobalStatistics(); } }