nushell/crates/nu-command/tests/format_conversions
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
..
bson.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
csv.rs Additional flags for commands from csv and from tsv (#8398) 2023-03-16 17:49:46 -05:00
html.rs FEATURE: print example command results in the help (#8189) 2023-02-26 21:05:11 +01:00
json.rs Fix warnings and old names (#8457) 2023-03-15 18:54:55 +13:00
markdown.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
mod.rs Move some from xxx commands to plugin (#7942) 2023-02-13 12:42:08 +00:00
nuon.rs Test more datatypes in nuon (#8211) 2023-02-25 19:26:34 +01:00
ods.rs refactor: change column names from 'Column*' to 'column*' (#4556) 2022-02-19 19:26:47 -05:00
ssv.rs refactor: change column names from 'Column*' to 'column*' (#4556) 2022-02-19 19:26:47 -05:00
toml.rs Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
tsv.rs Additional flags for commands from csv and from tsv (#8398) 2023-03-16 17:49:46 -05:00
url.rs Rename to url command to url build-query (#7702) 2023-01-15 10:16:29 -08:00
xlsx.rs refactor: change column names from 'Column*' to 'column*' (#4556) 2022-02-19 19:26:47 -05:00
xml.rs Fix warnings and old names (#8457) 2023-03-15 18:54:55 +13:00
yaml.rs Fix and Allow Number and Boolean type to be key in from yaml (#7607) 2022-12-27 08:28:24 -08:00