@@ -295,6 +295,38 @@ executables an experiment needs to execute.
295295
296296The format of this config section is as follows:
297297
298+ .. code-block :: yaml
299+
300+ formatted_executables :
301+ command_name :
302+ [indentation : integer number of indentation spaces]
303+ [prefix : prefix string]
304+ [join_separator : string to use to join commands]
305+ [commands : [list, of, commands]]
306+
307+ In the above, the ``indentation `` attribute is an integer that will be used to
308+ inject spaces at the beginning of each line. The ``prefix `` attribute is used
309+ to define a prefix (after the indentation) to add to each line of the formatted
310+ executable. The ``join_separator `` attribute defines the string that will be
311+ used to join independent lines of the formatted executable. The ``commands ``
312+ attribute is a list of strings that will be re-formatted using the definitions
313+ in the rest of the formatted executable definition. Each entry will be split
314+ across new line characters before reformatting.
315+
316+ The default values for the attributes are:
317+
318+ .. code-block :: yaml
319+
320+ formatted_executables :
321+ command_name :
322+ indentation : 0
323+ prefix : ' '
324+ join_separator : ' \n'
325+ commands :
326+ - ' {unformatted_command}'
327+
328+ A more complete exampe of using formatted executables can be seen below:
329+
298330.. code-block :: yaml
299331
300332 formatted_executables :
@@ -303,10 +335,9 @@ The format of this config section is as follows:
303335 prefix : ' - '
304336 join_separator : ' \n'
305337
306-
307338 The above example defines a new variable named ``new_command `` which will be a
308339new-line (``\n ``) demlimited list of executables, where each executable is
309- prefixed with ``- `` and is indented 8 space characters.
340+ prefixed with ``'- ' `` and is indented 8 space characters.
310341
311342The default configuration files define one formatted executable named
312343``command ``. Its definition can be seen with:
0 commit comments