Added .doas command which executes the command as if you were the target user

This commit is contained in:
Kwoth
2022-11-19 22:36:18 +01:00
parent 8a6edc17e4
commit f24692e79b
5 changed files with 169 additions and 4 deletions

View File

@@ -302,7 +302,7 @@ public class CommandHandler : INService, IReadyExecutor
}
public Task<(bool Success, string Error, CommandInfo Info)> ExecuteCommandAsync(
CommandContext context,
ICommandContext context,
string input,
int argPos,
IServiceProvider serviceProvider,
@@ -311,7 +311,7 @@ public class CommandHandler : INService, IReadyExecutor
public async Task<(bool Success, string Error, CommandInfo Info)> ExecuteCommand(
CommandContext context,
ICommandContext context,
string input,
IServiceProvider services,
MultiMatchHandling multiMatchHandling = MultiMatchHandling.Exception)