public void ExecuteCommand(CommandBase command) { if (command.ShouldBackup) { SaveBackup(); } Console.WriteLine($"-- Before command execution: {_file.GetText()}"); command.Execute(); Console.WriteLine($"-- After command execution: {_file.GetText()}"); Console.WriteLine(); }