Initial Implementation of InvokeCommand activity #6463
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
InvokeCommand Activity for Elsa Workflows
Closes #6305
The
InvokeCommand
activity provides seamless integration between Elsa workflows and command-line operations through the CliWrap library. This powerful activity allows workflow authors to execute system commands, scripts, and external processes directly from their workflows with comprehensive configuration options and output handling.Key Features
Configuration Options
The activity provides extensive configuration options including:
Security
The implementation includes robust security features through the
ICommandValidator
interface, allowing administrators to:TODOs
Command
object that looked interesting likecmd.StandardInputPipe
,cmd.StandardErrorPipe
, andcmd.StandardOutputPipe
that looked interesting and may need to be integrated at the activity level to allow piping of commands from oneInvokeCommand
activity to the next.CommandFinder
withInvokeCommand
to dynamically display an auto-complete dropdown of available CLI commands on the current system while preserving the ability to accept both free-form string commands OR CliWrapCommand
objects.InvokeCommandTests
This change is