Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
h3. Complete example
This example uses the [RUN:] to provide *run* button and optionally a button that saves the result of the run. This expands on [How to semi-automate repetitive tasks]
 
{noformat}
{run:id=cli|anchor=results|inputSize=30|titleExport=Run and save output|
dateFormat=yyyy-MM-dd hh.mm.ss|
exportFile=?^$current_time.html|
attachmentComment=?Pages for $space|replace=
space::Space key:text-required,
action:'-a run --continue':Action,
script:'
--action run --common "--space $space"
@DATA:
  --action storePage --title "Designs"
  --action storePage --title "Design 1" --parent "Designs"
':Script of actions (one per line):textarea-required:5:140}

{anchor:results}
----
Results generated: *$current_time*

{cli:profile=confluence}
$action 
@DATA:
$script
{cli}

{run}
{noformat}