nushell/crates/nu-cli
Dietrich Daroch 9c7b25134b
Parsing: Explain parsing errors and show sample lines. (#2774)
This makes the errors slightly better. It took me a while to realize I was missing the `--raw` flag.

```
open "data.csv" | from csv --separator ';'
```

    error: Could not parse as CSV split by ',' (Line 1: expected 1 fields, found 14)
      ┌─ shell:1:1
      │
    1 │ open "data.csv" | from csv --separator ';'
      │ ^^^^ ------------------------------------------------- value originates from here
      │ │
      │ input cannot be parsed as CSV split by ','. Sample input:
    Name;Data
    Ugly;row
    AnotherUgly;row

I think this still needs some refinement. Maybe we don't want to show
the separator all the time, omitting the defaults or the separator
on other formats.
2020-12-07 07:19:04 +13:00
..
assets moved theme assets local to crate (#2329) 2020-08-11 13:57:03 -05:00
src Parsing: Explain parsing errors and show sample lines. (#2774) 2020-12-07 07:19:04 +13:00
tests Add hash command with base64 subcommand (#2769) 2020-12-01 06:47:35 +13:00
build.rs enhanced version command with more info (#2773) 2020-12-01 13:57:49 -06:00
Cargo.toml Revert "Bump Rustyline to 7.0.0 (#2776)" (#2778) 2020-12-05 17:12:42 +13:00