Skip to content

Commit

Permalink
(chocolateyGH-10) set ChocolateyConfig serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Feb 4, 2015
1 parent 8970a84 commit d4d4a8f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace chocolatey.infrastructure.app.configuration
/// <summary>
/// The chocolatey configuration.
/// </summary>
[Serializable]
public class ChocolateyConfiguration
{
public ChocolateyConfiguration()
Expand Down Expand Up @@ -202,6 +203,7 @@ private void output_tostring(StringBuilder propertyValues, IEnumerable<PropertyI
public PinCommandConfiguration PinCommand { get; private set; }
}

[Serializable]
public sealed class InformationCommandConfiguration
{
// application set variables
Expand All @@ -214,6 +216,7 @@ public sealed class InformationCommandConfiguration
public bool IsInteractive { get; set; }
}

[Serializable]
public sealed class FeaturesConfiguration
{
public bool AutoUninstaller { get; set; }
Expand All @@ -222,13 +225,15 @@ public sealed class FeaturesConfiguration

//todo: retrofit other command configs this way

[Serializable]
public sealed class ListCommandConfiguration
{
// list
public bool LocalOnly { get; set; }
public bool IncludeRegistryPrograms { get; set; }
}

[Serializable]
public sealed class NewCommandConfiguration
{
public NewCommandConfiguration()
Expand All @@ -241,6 +246,7 @@ public NewCommandConfiguration()
public IDictionary<string, string> TemplateProperties { get; private set; }
}

[Serializable]
public sealed class SourcesCommandConfiguration
{
public string Name { get; set; }
Expand All @@ -255,17 +261,20 @@ public sealed class FeatureCommandConfiguration
public FeatureCommandType Command { get; set; }
}

[Serializable]
public sealed class PinCommandConfiguration
{
public string Name { get; set; }
public PinCommandType Command { get; set; }
}

[Serializable]
public sealed class ApiKeyCommandConfiguration
{
public string Key { get; set; }
}

[Serializable]
public sealed class PushCommandConfiguration
{
public string Key { get; set; }
Expand Down

0 comments on commit d4d4a8f

Please sign in to comment.