mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00:00
Remove broken error make examples (#951)
This commit is contained in:
parent
8a93548de2
commit
c4858fb202
1 changed files with 5 additions and 17 deletions
|
@ -65,26 +65,14 @@ impl Command for ErrorMake {
|
|||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
vec![
|
||||
Example {
|
||||
description: "Creates a labeled error",
|
||||
example: r#"{msg: "The message" , label: {start: 0, end: 141, text: "Helpful message here"}} | error make"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description: "Creates a labeled error, using a call argument",
|
||||
example: r#"error make {msg: "The message" , label: {start: 0, end: 141, text: "Helpful message here"}}"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description: "Create a custom error for a custom command",
|
||||
example: r#"def foo [x] {
|
||||
vec![Example {
|
||||
description: "Create a custom error for a custom command",
|
||||
example: r#"def foo [x] {
|
||||
let span = (metadata $x).span;
|
||||
error make {msg: "this is fishy", label: {text: "fish right here", start: $span.start, end: $span.end } }
|
||||
}"#,
|
||||
result: None,
|
||||
},
|
||||
]
|
||||
result: None,
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue