Class ShellToolset
- Namespace
- Oscova.Agents.Toolsets
- Assembly
- Oscova.Agents.dll
Exposes foreground and background shell command execution through the runtime selected by the host app.
public sealed class ShellToolset : ICrewToolsetInheritance
Implements
Inherited Members
Constructors
- ShellToolset(IShellExecutorProvider, IShellBackgroundJobProvider)
-
Exposes foreground and background shell command execution through the runtime selected by the host app.
Fields
- MaxTimeoutSeconds
-
The maximum seconds a single command may run; also the shared executor backstop.
Methods
- ExecCommandAsync(string, int?, CancellationToken)
-
Executes a command through the current run's shell executor. Approval is required by default.
- KillCommandAsync(string, CancellationToken)
-
Stops a background shell command.
- ReadCommandOutputAsync(string, long, int?, CancellationToken)
-
Reads incremental output from a background shell command.
- StartCommandAsync(string, CancellationToken)
-
Launches a shell command in the background and returns a job id immediately.