eval
Evaluate a Python expression and assign result to a field
Aliases
eval
evaluate
Synopsis
| eval <field_name> = <expression> [, ...]
Schema
{
"additionalProperties": {
"description": "Evaluated fields"
}
}
Description
eval
evaluates an expression and returns its results.
The expression is evaluated by the underlying Python interpreter. Unlike
standard evaluation, eval
uses a set of custom functions and a custom
variables resolution mechanism.
Functions are documented here.
Examples
| make showinfo=yes
| eval some.field = id + 1
| commands
| eval
command.name = at(command.aliases, 0),
command.markdown = joinpath('markdown', at(command.aliases, 0) + '.md')