Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧹 Sonar fixes
Browse files Browse the repository at this point in the history
nop77svk committed Jul 29, 2024
1 parent 0c2c89f commit 5139b47
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion wtwd.cli.InitLockUnlock/InitLockUnlockCLI.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
using CommandLine;

[Verb("init-lock-unlock", HelpText = "Initialize Windows event log for explicit/custom lock/unlock events source.\nWarning: Requires elevated privileges!")]
public class InitLockUnlockCLI
public class InitLockUnlockCli
{
[Option('x', "exe-path", Required = false, HelpText = "Path to wtwd.exe.\nIf not supplied, path to this executable being run is used.")]
public string? ExeFilePath { get; set; }
2 changes: 1 addition & 1 deletion wtwd.cli.InitLockUnlock/InitLockUnlockConfig.cs
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ private InitLockUnlockConfig()
{
}

internal static InitLockUnlockConfig FromRawCLI(InitLockUnlockCLI cli)
internal static InitLockUnlockConfig FromRawCLI(InitLockUnlockCli cli)
{
return new InitLockUnlockConfig()
{
2 changes: 1 addition & 1 deletion wtwd.cli.InitLockUnlock/InitLockUnlockProgram.cs
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ namespace NoP77svk.wtwd.cli.InitLockUnlock;

public static class InitLockUnlockProgram
{
public static void Execute(InitLockUnlockCLI cli)
public static void Execute(InitLockUnlockCli cli)
{
Execute(InitLockUnlockConfig.FromRawCLI(cli));
}
4 changes: 2 additions & 2 deletions wtwd.cli/Program.cs
Original file line number Diff line number Diff line change
@@ -15,11 +15,11 @@ internal static int Main(string[] args)
WindowsVersionChecks();

Parser.Default
.ParseArguments<ListCli, LockCli, UnlockCli, InitLockUnlockCLI>(args)
.ParseArguments<ListCli, LockCli, UnlockCli, InitLockUnlockCli>(args)
.WithParsed<ListCli>(cli => ListProgram.Execute(cli))
.WithParsed<LockCli>(cli => LockProgram.Execute(cli))
.WithParsed<UnlockCli>(cli => UnlockProgram.Execute(cli))
.WithParsed<InitLockUnlockCLI>(cli => InitLockUnlockProgram.Execute(cli));
.WithParsed<InitLockUnlockCli>(cli => InitLockUnlockProgram.Execute(cli));

return 0;
}

0 comments on commit 5139b47

Please sign in to comment.