first commit

This commit is contained in:
2026-03-02 20:53:28 +01:00
commit d27c205106
63 changed files with 4593 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using HanaToolbox.Services.Interfaces;
namespace HanaToolbox.Services.Interfaces;
public interface IUserSwitcher
{
/// <summary>
/// Executes a shell command string as &lt;sid&gt;adm using `su - &lt;sid&gt;adm -c`.
/// If already running as &lt;sid&gt;adm, runs the command directly.
/// </summary>
Task<ProcessResult> RunAsAsync(
string sid, string shellCommand,
CancellationToken ct = default);
}