olivetin/docs/modules/ROOT/pages/action_customization/ids.adoc

17 lines
553 B
Plaintext

[#action-ids]
= Action IDs
OliveTin actions do not require IDs to be specified in the `config.yaml`, as most users of OliveTin start off with the Web Interface. However, if you want to use OliveTin actions via the xref:api/intro.adoc[API], then you will need to set your action IDs manually.
NOTE: OliveTin will automatically generate a new ID for actions every time it starts up, for actions that don't have an `id:` property set.
[source,yaml]
----
actions:
- title: Start the reactor
id: start_reactor
shell: /bin/startReactor.sh
----