nushell-prophet / numd

numd - reproducible Nushell Markdown documents
The Unlicense
14 stars 0 forks source link

add support for code block execution options #14

Closed maxim-uvarov closed 5 months ago

maxim-uvarov commented 5 months ago

Now it is possible to add execution options in the infostring of code block.

like ```nushell no-output

For now supported options are:

{
O: 'no-output' # don't try printing result
t: 'try' # try handling errors
n: 'new-instance' # execute outside
}

A user might use long or short form of an option. Options could be combined using comma, like in the example: ```nushell t, n