nushell/crates/nu-command
Matthew Deville 8543b0789d
Additional flags for commands from csv and from tsv (#8398)
# Description

Resolves issue #8370

Adds the following flags to commands `from csv` and `from tsv`:
- `--flexible`: allow the number of fields in records to be variable
- `-c --comment`: a comment character to ignore lines starting with it
- `-q --quote`: a quote character to ignore separators in strings,
defaults to '\"'
- `-e --escape`: an escape character for strings containing the quote
character

Internally, the `Value` struct has an additional helper function
`as_char` which converts it to a single `char`

# User-Facing Changes

The single quoted string `'\t'` can no longer be used as a parameter for
the flag `--separator '\t'` as it is interpreted as a two-character
string. One needs to use from now on the flag with a double quoted
string like so: `-s "\t"` which correctly interprets the string as a
single `char`.
2023-03-16 17:49:46 -05:00
..
assets refactor html module (#5246) 2022-04-20 08:50:14 -05:00
proptest-regressions/format_conversions Add proptest regression (#8396) 2023-03-15 20:08:02 -07:00
src Additional flags for commands from csv and from tsv (#8398) 2023-03-16 17:49:46 -05:00
tests Additional flags for commands from csv and from tsv (#8398) 2023-03-16 17:49:46 -05:00
Cargo.toml Bump mockito from 0.32.5 to 1.0.0 (#8426) 2023-03-16 11:40:49 +01:00
LICENSE Include license text in all crates (#5094) 2022-04-08 10:47:13 +02:00