eventmanager commands: allow to pass custom arguments

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-08-30 12:37:18 +02:00
parent 9e77cd1a26
commit da03f6c4e3
10 changed files with 165 additions and 79 deletions

View File

@@ -251,6 +251,17 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
</div>
</div>
<div class="form-group row action-type action-cmd">
<label for="idCommandArgs" class="col-sm-2 col-form-label">Arguments</label>
<div class="col-sm-10">
<textarea class="form-control" id="idCommandArgs" name="cmd_arguments" rows="2" placeholder=""
aria-describedby="commandArgumentsHelpBlock">{{.Action.Options.CmdConfig.GetArgumentsAsString}}</textarea>
<small id="commandArgumentsHelpBlock" class="form-text text-muted">
Comma separated command arguments. Placeholders are supported.
</small>
</div>
</div>
<div class="form-group row action-type action-cmd">
<label for="idCmdTimeout" class="col-sm-2 col-form-label">Timeout</label>
<div class="col-sm-10">