From e9f9aab79fd8adbc2aa527665ef10dd456ba65e6 Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Wed, 23 Mar 2022 15:41:58 +0800 Subject: [PATCH] chore: Update default register examples (#4904) --- crates/nu-command/src/core_commands/register.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/core_commands/register.rs b/crates/nu-command/src/core_commands/register.rs index bc9829a9ce..b806102865 100644 --- a/crates/nu-command/src/core_commands/register.rs +++ b/crates/nu-command/src/core_commands/register.rs @@ -55,12 +55,12 @@ impl Command for Register { vec![ Example { description: "Register `nu_plugin_query` plugin from ~/.cargo/bin/ dir", - example: r#"register -e capnp ~/.cargo/bin/nu_plugin_query"#, + example: r#"register -e json ~/.cargo/bin/nu_plugin_query"#, result: None, }, Example { description: "Register `nu_plugin_query` plugin from `nu -c`(plugin will be available in that nu session only)", - example: r#"let plugin = ((which nu).path.0 | path dirname | path join 'nu_plugin_query'); nu -c $'register -e capnp ($plugin); version'"#, + example: r#"let plugin = ((which nu).path.0 | path dirname | path join 'nu_plugin_query'); nu -c $'register -e json ($plugin); version'"#, result: None, }, ]