mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 02:13:47 +01:00
chore: Update default register examples (#4904)
This commit is contained in:
parent
e826540037
commit
e9f9aab79f
@ -55,12 +55,12 @@ impl Command for Register {
|
|||||||
vec![
|
vec![
|
||||||
Example {
|
Example {
|
||||||
description: "Register `nu_plugin_query` plugin from ~/.cargo/bin/ dir",
|
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,
|
result: None,
|
||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
description: "Register `nu_plugin_query` plugin from `nu -c`(plugin will be available in that nu session only)",
|
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,
|
result: None,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user