Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ThunderstoreCLI/Configuration/CLIParameterConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public override GeneralConfig GetGeneralConfig()
}
}

public abstract class CLIParameterConfig<T> : BaseConfig<T> where T : PackageOptions
public interface CLIConfig { }

public abstract class CLIParameterConfig<T> : BaseConfig<T>, CLIConfig where T : PackageOptions
{
public CLIParameterConfig(T opts) : base(opts) { }

Expand Down
2 changes: 1 addition & 1 deletion ThunderstoreCLI/Configuration/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static Config FromCLI(IConfigProvider cliConfig)
List<IConfigProvider> providers = new();
providers.Add(cliConfig);
providers.Add(new EnvironmentConfig());
if (cliConfig.GetType().IsSubclassOf(typeof(CLIParameterConfig<>)))
if (cliConfig is CLIConfig)
providers.Add(new ProjectFileConfig());
providers.Add(new BaseConfig());
return Parse(providers.ToArray());
Expand Down