@@ -128,17 +128,18 @@ directive is required.
128
128
| ` commands ` | See [ Commands] ( #commands ) | ` Object ` | ` {} ` | No | No |
129
129
| ` cursor-position ` | Cursor position | ` Number ` | ` 0 ` | No | Yes |
130
130
| ` 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 |
132
132
| ` help-text ` | Command help | ` String ` | ` '' ` | No | Yes |
133
133
| ` help-timeout ` | Command help timeout | ` Number ` | ` 3000 ` | No | No |
134
134
| ` hide-bar ` | Hides the bar | ` Boolean ` | ` false ` | No | No |
135
135
| ` hide-prompt ` | Hides the prompt | ` Boolean ` | ` false ` | No | No |
136
136
| ` hide-title ` | Hides the title | ` Boolean ` | ` false ` | No | No |
137
137
| ` history ` | Terminal history | ` Array ` | ` [] ` | No | Yes |
138
138
| ` history-position ` | Points to the latest dispatched query entry | ` Number ` | ` 0 ` | No | Yes |
139
+ | ` interpreter ` | See [ Interpreter] ( #interpreter ) | ` Function ` | ` null ` | No | No |
139
140
| ` invert ` | Inverts the terminals colors | ` Boolean ` | ` false ` | No | No |
140
141
| ` 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 |
142
143
| ` parser ` | Query parser | ` Function ` | ` defaultParser ` | No | No |
143
144
| ` prompt ` | Terminal prompt | ` String ` | ` ~$ ` | No | No |
144
145
| ` 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
171
172
resolver provided as property. The resolver is called with the program, parsed
172
173
query and a setter to update the query.
173
174
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
+
174
186
## Slots
175
187
176
188
### Bar
0 commit comments