Fix multiple issues with def --wrapped
help example
This commit is contained in:
parent
944d941dec
commit
27433a8e08
|
@ -67,8 +67,8 @@ impl Command for Def {
|
||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
description: "Define a custom wrapper for an external command",
|
description: "Define a custom wrapper for an external command",
|
||||||
example: r#"def --wrapped my-echo [...rest] { echo $rest }; my-echo spam"#,
|
example: r#"def --wrapped my-echo [...rest] { ^echo ...$rest }; my-echo -e 'spam\tspam'"#,
|
||||||
result: Some(Value::test_list(vec![Value::test_string("spam")])),
|
result: Some(Value::test_string("spam\tspam")),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user