From 5e1acef05c6c9a613fb42d42cfa78be311b58e57 Mon Sep 17 00:00:00 2001 From: Jan Klass Date: Thu, 1 May 2025 23:30:02 +0200 Subject: [PATCH 1/2] Add Nushell example plugin reference to Plugins --- contributor-book/plugins.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contributor-book/plugins.md b/contributor-book/plugins.md index d34decacfaf..6db5b7cb71a 100644 --- a/contributor-book/plugins.md +++ b/contributor-book/plugins.md @@ -467,6 +467,8 @@ Example: Nushell rocks! ``` +For a full example, see [`nu_plugin_example` in the Nushell source repository](https://github.com/nushell/nushell/tree/main/crates/nu_plugin_example). + ## Evaluating closures Plugins can accept and evaluate closures using [`EngineInterface::eval_closure`](https://docs.rs/nu-plugin/latest/nu_plugin/struct.EngineInterface.html#method.eval_closure) or [`eval_closure_with_stream`](https://docs.rs/nu-plugin/latest/nu_plugin/struct.EngineInterface.html#method.eval_closure_with_stream). From 7bf566086b9b577ee3350cf4b9fd97207923da70 Mon Sep 17 00:00:00 2001 From: Jan Klass Date: Fri, 2 May 2025 00:01:27 +0200 Subject: [PATCH 2/2] Update example plugin URL --- contributor-book/plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributor-book/plugins.md b/contributor-book/plugins.md index 6db5b7cb71a..c1609c0fbbe 100644 --- a/contributor-book/plugins.md +++ b/contributor-book/plugins.md @@ -467,7 +467,7 @@ Example: Nushell rocks! ``` -For a full example, see [`nu_plugin_example` in the Nushell source repository](https://github.com/nushell/nushell/tree/main/crates/nu_plugin_example). +For a full example, see [`nu_plugin_example`](https://github.com/nushell/plugin-examples/tree/main/rust/nu_plugin_example). ## Evaluating closures