chore: Update default register examples (#4904)

This commit is contained in:
Justin Ma 2022-03-23 15:41:58 +08:00 committed by GitHub
parent e826540037
commit e9f9aab79f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}, },
] ]