forked from extern/nushell
add 'from ndjson' into standard library (#10283)
close #8574 related #10276 # Description added below into standard library ``` def "from ndjson" []: string -> any { from json --objects } ``` # User-Facing Changes Users can use functions like "from ndjson" in standard library, and can open ndjson files with `open` command. ``` use std formats * # `from ndjson` is available now open sample.ndjson ``` # Tests + Formatting `toolkit check pr` - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - 🟢 `toolkit test` - 🟢 `toolkit test stdlib` # After Submitting --------- Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
This commit is contained in:
@ -28,6 +28,7 @@ pub fn load_standard_library(
|
||||
("xml.nu", include_str!("../std/xml.nu")),
|
||||
("input.nu", include_str!("../std/input.nu")),
|
||||
("math.nu", include_str!("../std/math.nu")),
|
||||
("formats.nu", include_str!("../std/formats.nu")),
|
||||
];
|
||||
|
||||
let mut working_set = StateWorkingSet::new(engine_state);
|
||||
|
Reference in New Issue
Block a user