Table of Contents

Method StartCommandAsync

Namespace
Oscova.Agents.Toolsets
Assembly
Oscova.Agents.dll

StartCommandAsync(string, string?, CancellationToken)

Launches a shell command in the background and returns a job id immediately.

[ToolNetworkScope(NetworkScope.Incidental)]
public Task<object> StartCommandAsync(string command, string? workdir = null, CancellationToken cancellationToken = default)

Parameters

command string
workdir string?
cancellationToken CancellationToken

Returns

Task<object>