Echo

The Echo action has no effects: it returns the options that are given. This action can be useful for testing or debugging, by temporarily replacing some other action with an Echo action having the same options. In this way, a developer can safely get feedback on what data is in play, without side effects.

Options

This action accepts any and all options, restricted only in that they must be valid JSON values (as with all results of task code).

Examples

Liquid
JSON
Liquid
{% action "echo", foo: "bar", baz: "qux" %}
JSON
{
"action": {
"type": "echo",
"options": {
"foo": "bar",
"baz": "qux"
}
}
}
Liquid
JSON
Liquid
{% action "echo", "foo", "bar", "baz" %}
JSON
{
"action": {
"type": "echo",
"options": [
"foo",
"bar",
"baz"
]
}
}
Liquid
JSON
Liquid
{% action "echo", "foo" %}
JSON
{
"action": {
"type": "echo",
"options": "foo"
}
}
Liquid
JSON
Liquid
{% action "echo" %}
{
"foo": "bar",
"baz": "qux"
}
{% endaction %}
JSON
{
"action": {
"type": "echo",
"options": {
"foo": "bar",
"baz": "qux"
}
}
}