nushell/crates
Simon Goller 19c3570cf9
Allow open to work with 'from ...' block commands (#5049)
* 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>
2022-04-02 07:52:32 +13:00
..
nu_plugin_example Add search terms to Command and Signature (#4980) 2022-03-27 22:25:30 +03:00
nu_plugin_gstat Add search terms to Command and Signature (#4980) 2022-03-27 22:25:30 +03:00
nu_plugin_inc Add search terms to Command and Signature (#4980) 2022-03-27 22:25:30 +03:00
nu_plugin_python name change (#526) 2021-12-19 10:00:31 +00:00
nu_plugin_query Add search terms to Command and Signature (#4980) 2022-03-27 22:25:30 +03:00
nu-cli update reedline (#5062) 2022-04-01 19:22:40 +01:00
nu-color-config Help menu (#4992) 2022-03-27 14:01:04 +01:00
nu-command Allow open to work with 'from ...' block commands (#5049) 2022-04-02 07:52:32 +13:00
nu-engine Add starts with operator (#5061) 2022-04-01 13:35:46 -05:00
nu-glob update nu-glob README (#5037) 2022-03-30 10:44:23 -07:00
nu-json Bump nushell to 0.60.1 (#4987) 2022-03-27 16:18:47 +13:00
nu-parser Add starts with operator (#5061) 2022-04-01 13:35:46 -05:00
nu-path Bump nushell to 0.60.1 (#4987) 2022-03-27 16:18:47 +13:00
nu-plugin Add a README about changing capnp schema (#4998) 2022-03-27 19:02:19 -05:00
nu-pretty-hex Nu ansi term update (#4988) 2022-03-27 16:57:31 +13:00
nu-protocol Allow open to work with 'from ...' block commands (#5049) 2022-04-02 07:52:32 +13:00
nu-system Bump nushell to 0.60.1 (#4987) 2022-03-27 16:18:47 +13:00
nu-table Help menu (#4992) 2022-03-27 14:01:04 +01:00
nu-term-grid Bump nushell to 0.60.1 (#4987) 2022-03-27 16:18:47 +13:00
nu-test-support Bump nushell to 0.60.1 (#4987) 2022-03-27 16:18:47 +13:00
nu-utils Bump nushell to 0.60.1 (#4987) 2022-03-27 16:18:47 +13:00
old Add search terms to Command and Signature (#4980) 2022-03-27 22:25:30 +03:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.