From b312d841f0da08e83c8ce9062d8c55adb6cdfdeb Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Wed, 27 Feb 2013 12:43:48 +0100 Subject: add some doc to execute operation case Change-Id: I76fffbc3b8a4e7659443f3de218642993cacba92 Reviewed-by: Niels Weber --- doc/operations.qdoc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/operations.qdoc b/doc/operations.qdoc index 4a1c00bcf..83e467319 100644 --- a/doc/operations.qdoc +++ b/doc/operations.qdoc @@ -81,13 +81,24 @@ is treated as ASCII text. \row \o Execute - \o "Execute" [{\a exitcodes}] \a command [\a parameter1 [\a parameter2 [\a parameter3 [\a parameter4]]]] - \o Executes the command specified by \a command. Up to four - parameters can be passed. + \o "Execute" [{\a exitcodes}] \a command [\a parameter1 [\a parameter... [\a parameter10]]] + \o Executes the command specified by \a command. Up to 10 + parameters can be passed. If that is not enough, you can use a JavaScript string array. Optionally, you can pass a comma-separated list of exit codes within curly brackets ({}) as the first argument to specify the exit codes for successful execution. This defaults to "{0}". + + Other optional named arguments are: "workingdirectory="; + "errormessage=" + + In addition, a special argument, UNDOEXECUTE, separates the DO step of the operation + from the UNDO step. + + example: + \code + component.addOperation("Execute", "touch", "test.txt", "UNDOEXECUTE", "rm", "test.txt") + \endcode \row \o CreateShortcut \o "CreateShortcut" \a filename \a linkname [\a arguments] -- cgit v1.2.3