Templates only for arguments. (#7280)

This commit is contained in:
akloeckner 2018-11-01 09:38:44 +01:00 committed by Fabian Affolter
parent 0c3a7a9b0c
commit 7f5d9f5364

View File

@ -30,7 +30,7 @@ Configuration variables:
- Alias for the command
- Command itself.
The commands can be dynamic, using templates to insert values for arguments. When using templates, shell_command runs in a more secure environment which doesn't allow any shell helpers like automatically expanding the home dir `~` or using pipe symbols to run multiple commands.
The commands can be dynamic, using templates to insert values for arguments. When using templates, shell_command runs in a more secure environment which doesn't allow any shell helpers like automatically expanding the home dir `~` or using pipe symbols to run multiple commands. Similarly, only content after the first space can be generated by a template. This means the command name itself cannot be generated by a template, but it must be literally provided.
Any service data passed into the service call to activate the shell command will be available as a variable within the template.