diff --git a/DependencyUpdated.Core/Config/Project.cs b/DependencyUpdated.Core/Config/Project.cs index 0c458df..faaab22 100644 --- a/DependencyUpdated.Core/Config/Project.cs +++ b/DependencyUpdated.Core/Config/Project.cs @@ -13,6 +13,16 @@ public sealed class Project : IValidatableObject public string[] Directories { get; set; } = ArraySegment.Empty.ToArray(); public string[] Groups { get; set; } = ArraySegment.Empty.ToArray(); + + public string[] GetGroups() + { + if (Groups.Length == 0) + { + return ["*"]; + } + + return Groups; + } public IEnumerable Validate(ValidationContext validationContext) { diff --git a/DependencyUpdated/Program.cs b/DependencyUpdated/Program.cs index 42fe122..64bcc83 100644 --- a/DependencyUpdated/Program.cs +++ b/DependencyUpdated/Program.cs @@ -74,7 +74,7 @@ private static async Task RunApplication(Options options) var uniqueListOfDependencies = allDepencenciesToUpdate.DistinctBy(x => x.Name).ToList(); - foreach (var group in configEntry.Groups) + foreach (var group in configEntry.GetGroups()) { var matchesForGroup = uniqueListOfDependencies .Where(x => FileSystemName.MatchesSimpleExpression(group, x.Name)).ToArray();