mirror of
https://github.com/nushell/nushell.git
synced 2025-07-09 02:48:17 +02:00
Add --env and --wrapped flags to def (#10566)
This commit is contained in:
@ -163,7 +163,7 @@ impl Command for ViewSource {
|
||||
},
|
||||
Example {
|
||||
description: "View the source of a custom command, which participates in the caller environment",
|
||||
example: r#"def-env foo [] { $env.BAR = 'BAZ' }; view source foo"#,
|
||||
example: r#"def --env foo [] { $env.BAR = 'BAZ' }; view source foo"#,
|
||||
result: Some(Value::test_string("def foo [] { $env.BAR = 'BAZ' }")),
|
||||
},
|
||||
Example {
|
||||
|
Reference in New Issue
Block a user