Adding --signExclude parameter

This allows the caller to specify a regex pattern to exclude files. When specified the default filter no longer applies
This commit is contained in:
Kevin Bost
2025-01-13 22:19:47 -08:00
committed by Caelan
parent 9256ab38db
commit 81a44aee91
6 changed files with 13 additions and 10 deletions

View File

@@ -265,14 +265,14 @@ public class PackWindowsCommandTests : ReleaseCommandTests<WindowsPackCommand>
}
[WindowsOnlyFact]
public void SignSkipDll_BareOption_SetsFlag()
public void SignExclude_WithPattern_SetsOption()
{
var command = new WindowsPackCommand();
string cli = GetRequiredDefaultOptions() + "--signSkipDll";
string cli = GetRequiredDefaultOptions() + @"--signExclude \.dll$";
ParseResult parseResult = command.ParseAndApply(cli);
Assert.True(command.SignSkipDll);
Assert.Equal(@"\.dll$", command.SignExclude);
}
[WindowsOnlyFact]