mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
19c3570cf9
* Remove panic from BlockCommands run function Instead of panicing, the run method now returns an error to prevent nushell from unexpected termination. * Add ability to open command to run with blocks The open command tries to parse the content of the file if there is a command called 'from (file ending)'. This works fine if the command was 'built in' because the run method doesn't fail in this case. It did fail on a BlockCommand, though. This change will first probe if the command contains a block and evaluate it, if this is the case. If there is no block, it will run the command the same way as before. * Add test open files with BlockCommands * Update open.rs * Adjust file type on open with BlockCommand parser Co-authored-by: JT <547158+jntrnr@users.noreply.github.com> |
||
---|---|---|
.. | ||
activate-foo.nu | ||
appveyor.yml | ||
caco3_plastics.csv | ||
caco3_plastics.tsv | ||
cargo_sample.toml | ||
deactivate-foo.nu | ||
jonathan.xml | ||
lines_test.txt | ||
random_numbers.csv | ||
sample_data.ods | ||
sample_data.xlsx | ||
sample_def.nu | ||
sample_headers.xlsx | ||
sample-ls-output.json | ||
sample-ps-output.json | ||
sample-simple.json | ||
sample-sys-output.json | ||
sample.blockcommandparser | ||
sample.bson | ||
sample.db | ||
sample.eml | ||
sample.ini | ||
sample.nuon | ||
sample.url | ||
script_multiline.nu | ||
script.nu | ||
sgml_description.json | ||
utf16.ini |