This extension lets you populate a dynamic list of options from which you can pick a value during debugging or running tasks.
- Supports multi value selection
- Supports other script languages (bash, python, nodejs etc.)
- Supports memoization of the parameter using
var
parameter inargs
anddynamic-inputs.read
command - Supports remap options to values by using
unwrap
- Supports params serializations via
serializer
option with the following value:json
orplain
(will pass multiple selections with a space delimiter)
dynamic-inputs.read
- attempts to read from memory or shows a selection listdynamic-inputs.write
- always offers to a selection and saves the selection to the memory ifargs.var
is given
- Create a script which populates options by writing JSON array to stdout
- Create a script for debugging
- Run a task with a dynamic variable
- Debug the script with a dynamic variable
Supported variables in interpolation
Given
[
{ "label": "$(notebook-state-success) A", "value": "A", "picked": true },
{ "label": "$(notebook-state-error) B", "value": "B" },
{ "label": "$(notifications-configure) C", "value": "C" }
]
To receive ["A", "B"]
as your selection, you can use the following JSON path expression $[*].value
git clone https://github.com/igrek8/dynamic-inputs
code dynamic-inputs/playground
Icons made by Freepik from www.flaticon.com