Skip to content

Commit a233e8f

Browse files
committed
Rename Utils class to Utilities
1 parent 197b7bf commit a233e8f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/EasySign.CommandLine/BundleWorker.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected virtual void RunAdd(StatusContext statusContext)
3636
if (!Bundle.IsLoaded && File.Exists(Bundle.BundlePath))
3737
Bundle.LoadFromFile(false);
3838

39-
Parallel.ForEach(Utils.SafeEnumerateFiles(Bundle.RootPath, "*"), file =>
39+
Parallel.ForEach(Utilities.SafeEnumerateFiles(Bundle.RootPath, "*"), file =>
4040
{
4141
if (file == Bundle.BundlePath) return;
4242
Bundle.AddEntry(file);
@@ -244,7 +244,7 @@ protected bool VerifyCertificate(X509Certificate2 certificate)
244244
{
245245
bool timeIssue = statuses.Any(x => x.Status.HasFlag(X509ChainStatusFlags.NotTimeValid));
246246

247-
Utils.EnumerateStatuses(statuses);
247+
Utilities.EnumerateStatuses(statuses);
248248

249249
if (timeIssue)
250250
{
@@ -255,7 +255,7 @@ protected bool VerifyCertificate(X509Certificate2 certificate)
255255
verifyResults.Add(noTimeVerification);
256256

257257
AnsiConsole.MarkupLine($"[{(noTimeVerification ? Color.Green : Color.Red)}] Certificate Verification without time checking {(noTimeVerification ? "Successful" : "Failed")}[/]");
258-
Utils.EnumerateStatuses(noTimeStatuses);
258+
Utilities.EnumerateStatuses(noTimeStatuses);
259259
}
260260
}
261261

src/EasySign.CommandLine/CommandProvider.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Command Add
4646
command.SetHandler((workingDir, bundleName) =>
4747
{
4848
InitializeBundle(workingDir, bundleName);
49-
Utils.RunInStatusContext(ctx => RunAdd(ctx));
49+
Utilities.RunInStatusContext(ctx => RunAdd(ctx));
5050
}, WorkingDirectory, BundleName);
5151

5252
return command;
@@ -76,9 +76,9 @@ public Command Sign
7676
command.SetHandler((workingDir, bundleName, pfxFilePath, pfxFilePassword, pfxNoPasswordPrompt) =>
7777
{
7878
InitializeBundle(workingDir, bundleName);
79-
X509Certificate2Collection collection = Utils.GetCertificates(pfxFilePath, pfxFilePassword, pfxNoPasswordPrompt);
79+
X509Certificate2Collection collection = Utilities.GetCertificates(pfxFilePath, pfxFilePassword, pfxNoPasswordPrompt);
8080

81-
Utils.RunInStatusContext(ctx => RunSign(ctx, collection));
81+
Utilities.RunInStatusContext(ctx => RunSign(ctx, collection));
8282
}, WorkingDirectory, BundleName, pfxOpt, pfxPassOpt, pfxNoPassOpt);
8383

8484
return command;
@@ -101,7 +101,7 @@ public Command Verify
101101
command.SetHandler((workingDir, bundleName) =>
102102
{
103103
InitializeBundle(workingDir, bundleName);
104-
Utils.RunInStatusContext(ctx => RunVerify(ctx));
104+
Utilities.RunInStatusContext(ctx => RunVerify(ctx));
105105
}, WorkingDirectory, BundleName);
106106

107107
return command;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace SAPTeam.EasySign.CommandLine
1212
/// <summary>
1313
/// Provides utility methods for various operations.
1414
/// </summary>
15-
public static class Utils
15+
public static class Utilities
1616
{
1717
/// <summary>
1818
/// Runs the specified action within a status context, provides fancy progress showing.

0 commit comments

Comments
 (0)