popuponstart.adoc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [#popup-on-start]
  2. = Popup on Start (Execution Feedback)
  3. OliveTin now has several options to control "execution feedback" when actions are started. This can be controlled on
  4. a per-action basis, using the `popupOnStart` configuration option.
  5. You can also set the default for OliveTin using the `defaultPopupOnStart` configuration option.
  6. == Big Flashy Buttons (default)
  7. [source,yaml]
  8. .`config.yaml`
  9. ----
  10. actions:
  11. - title: Ping the Internet
  12. popupOnStart: default
  13. ----
  14. This will also be the option that is used if no other values match.
  15. image::../flashyButton.png[]
  16. == Execution Dialog (Output Only)
  17. This can be useful for just displaying the output of a command, without too many additional details like the start time, end time, etc.
  18. [source,yaml]
  19. .`config.yaml`
  20. ----
  21. actions:
  22. - title: Check disk space
  23. popupOnStart: execution-dialog-stdout-only
  24. ----
  25. [NOTE]
  26. OliveTin used to separate out the Standard Output (`stdout`) and Standard Error (`stderr`) into two separate output streams. This made no sense, as lines would effectively be separated. This behavior has change to now display `stdout` and `stderr` in the same output stream. However, the configuration option `execution-dialog-stdout-only` was not renamed - and now it includes `stderr` as well.
  27. image::../popupOutputOnly.png[]
  28. == Execution Dialog
  29. The `execution-dialog` option for `popupOnStart` is simialr to the above `execution-dialog-stdout-only`, but it includes the start time, end time, exit code and the duration of time it took for the command to execute.
  30. [source,yaml]
  31. .`config.yaml`
  32. ----
  33. actions:
  34. - title: Check dmesg logs
  35. popupOnStart: execution-dialog
  36. ----
  37. .Example of `popupOnStart: execution-dialog`
  38. image::../executionDialog.png[]
  39. == Execution Buttons
  40. This mode of `popupOnStart` will create a new button for each individual execution. This can be useful for actions that are executed again and again.
  41. The text of the button (eg, "0s" in the screenshot below), is the time it took to execute the action in seconds.
  42. [source,yaml]
  43. .`config.yaml`
  44. ----
  45. actions:
  46. - title: date
  47. popupOnStart: execution-button
  48. ----
  49. image::../executionButtons.png[]