mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
chore: Update default register examples (#4904)
This commit is contained in:
parent
e826540037
commit
e9f9aab79f
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue