From 4987e5403733923da941d9fe651bb66abb2df203 Mon Sep 17 00:00:00 2001 From: Joel Bennett Date: Mon, 2 Mar 2015 01:52:46 -0500 Subject: [PATCH] Fix default values --- .../infrastructure.app/commands/ChocolateySourceCommand.cs | 2 +- .../services/IChocolateyConfigSettingsService.cs | 2 +- src/chocolatey/infrastructure/commands/IListCommand.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateySourceCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateySourceCommand.cs index c8ce780d5c..4459178850 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateySourceCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateySourceCommand.cs @@ -140,7 +140,7 @@ public void run(ChocolateyConfiguration configuration) } } - public IEnumerable list(ChocolateyConfiguration configuration, bool logResults) + public IEnumerable list(ChocolateyConfiguration configuration, bool logResults = true) { return _configSettingsService.source_list(configuration, logResults); } diff --git a/src/chocolatey/infrastructure.app/services/IChocolateyConfigSettingsService.cs b/src/chocolatey/infrastructure.app/services/IChocolateyConfigSettingsService.cs index cd139b3628..8eaa43cb2e 100644 --- a/src/chocolatey/infrastructure.app/services/IChocolateyConfigSettingsService.cs +++ b/src/chocolatey/infrastructure.app/services/IChocolateyConfigSettingsService.cs @@ -24,7 +24,7 @@ namespace chocolatey.infrastructure.app.services public interface IChocolateyConfigSettingsService { void noop(ChocolateyConfiguration configuration); - IEnumerable source_list(ChocolateyConfiguration configuration, bool logResults); + IEnumerable source_list(ChocolateyConfiguration configuration, bool logResults = true); void source_add(ChocolateyConfiguration configuration); void source_remove(ChocolateyConfiguration configuration); void source_disable(ChocolateyConfiguration configuration); diff --git a/src/chocolatey/infrastructure/commands/IListCommand.cs b/src/chocolatey/infrastructure/commands/IListCommand.cs index 6d7026fbe8..123ee43ca5 100644 --- a/src/chocolatey/infrastructure/commands/IListCommand.cs +++ b/src/chocolatey/infrastructure/commands/IListCommand.cs @@ -20,6 +20,6 @@ namespace chocolatey.infrastructure.commands public interface IListCommand : ICommand { - IEnumerable list(ChocolateyConfiguration config, bool logResults); + IEnumerable list(ChocolateyConfiguration config, bool logResults = true); } }