@@ -128,17 +128,18 @@ directive is required.
128128| ` commands ` | See [ Commands] ( #commands ) | ` Object ` | ` {} ` | No | No |
129129| ` cursor-position ` | Cursor position | ` Number ` | ` 0 ` | No | Yes |
130130| ` dispatched-queries ` | Non-empty dispatched queries | ` Set ` | ` new Set() ` | No | Yes |
131- | ` event-resolver ` | See [ Event resolver] ( #Event -resolver ) | ` Function ` | ` newDefaultEventResolver ` | No | No |
131+ | ` event-resolver ` | See [ Event resolver] ( #event -resolver ) | ` Function ` | ` newDefaultEventResolver ` | No | No |
132132| ` help-text ` | Command help | ` String ` | ` '' ` | No | Yes |
133133| ` help-timeout ` | Command help timeout | ` Number ` | ` 3000 ` | No | No |
134134| ` hide-bar ` | Hides the bar | ` Boolean ` | ` false ` | No | No |
135135| ` hide-prompt ` | Hides the prompt | ` Boolean ` | ` false ` | No | No |
136136| ` hide-title ` | Hides the title | ` Boolean ` | ` false ` | No | No |
137137| ` history ` | Terminal history | ` Array ` | ` [] ` | No | Yes |
138138| ` history-position ` | Points to the latest dispatched query entry | ` Number ` | ` 0 ` | No | Yes |
139+ | ` interpreter ` | See [ Interpreter] ( #interpreter ) | ` Function ` | ` null ` | No | No |
139140| ` invert ` | Inverts the terminals colors | ` Boolean ` | ` false ` | No | No |
140141| ` is-fullscreen ` | Terminal fullscreen mode | ` Boolean ` | ` false ` | No | Yes |
141- | ` options-resolver ` | See [ Options resolver] ( #Options -resolver ) | ` Function ` | ` null ` | No | No |
142+ | ` options-resolver ` | See [ Options resolver] ( #options -resolver ) | ` Function ` | ` null ` | No | No |
142143| ` parser ` | Query parser | ` Function ` | ` defaultParser ` | No | No |
143144| ` prompt ` | Terminal prompt | ` String ` | ` ~$ ` | No | No |
144145| ` show-help ` | Show query help | ` Boolean ` | ` false ` | No | No |
@@ -171,6 +172,17 @@ as the query has been autocompleted by the terminal, it's calling the options
171172resolver provided as property. The resolver is called with the program, parsed
172173query and a setter to update the query.
173174
175+ ### Interpreter
176+
177+ An interpreter allows to execute arbitrary code after the query has been
178+ dispatched and to not rely on missing functionality which includes pipes,
179+ streams or running multiple commands in parallel.
180+
181+ The interpreter is a property function that is called with the unparsed query
182+ right after the query component calls ` dispatch ` and terminates it at the same
183+ time. After the call, you must use the [ properties] ( #properties ) and
184+ [ exposed functions] ( #exposed ) to reach the desired behaviour.
185+
174186## Slots
175187
176188### Bar
0 commit comments