mirror of
https://github.com/nushell/nushell
synced 2024-11-15 01:17:07 +00:00
Fix example history command pipeline (#10220)
the example for `history` was out of date, this PR updates it.
## the failing command
```
❯ history | wrap cmd | where cmd =~ cargo
Error: nu:🐚:type_mismatch
× Type mismatch during operation.
╭─[entry #23:1:1]
1 │ history | wrap cmd | where cmd =~ cargo
· ───┬─── ─┬ ──┬──
· │ │ ╰── string
· │ ╰── type mismatch for operator
· ╰── record<start_timestamp: string, command: string, cwd: string, duration: duration, exit_status: int>
╰────
```
This commit is contained in:
parent
5ad3bfa31b
commit
b15c824932
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ impl Command for History {
|
|||
result: None,
|
||||
},
|
||||
Example {
|
||||
example: "history | wrap cmd | where cmd =~ cargo",
|
||||
example: "history | where command =~ cargo | get command",
|
||||
description: "Search all the commands from history that contains 'cargo'",
|
||||
result: None,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue