Utilities

Frends.Utilities.RunProcess / 1.1.0

Summary

Runs a program on the agent with arguments and a working directory, returning its exit code and both output streams. This executes arbitrary code with the agent's own privileges.

Typical use — reaching for a command line tool no Task covers — never build the arguments from untrusted input, since that is where command injection gets in

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0
2.0.02026-11-03
Added
  • Added ThrowErrorOnFailure and ErrorMessageOnFailure options. By default the Task keeps throwing on failure; when ThrowErrorOnFailure is disabled, failures are returned in the result Error property.
  • Added Success and Error properties to the Task result.
Changed
  • Task now targets .NET 8.
1.1.02024-05-16
Added
  • You can now specify working directory for the process to run in (#12)
Fixed
  • Fixed a bug where the process is executed twice (#11)
1.0.02024-02-09
Changed
  • Initial implementation
An unhandled error has occurred. Reload 🗙
Reconnecting… Connection lost.