nushell/crates/nu-command
Stefan Stanciulescu dc1248a454
Fix drop nth bug (#5312)
* Fix drop nth bug on ranges. Should fix & close #5260

* Fix drop nth bug on ranges. Should fix & close #5260

* Add support for ranges

* Working version of drop nth, but the issue is that we unwrap the value which is problematic for Streams. Should convert to the way @stormasm was doing it before and implement the range check

* Fix fmt issue

* Drop nth now works for Lists, Records, and Ranges. We need support for ListStreams and for ExternalStreams

* Keep consistent naming

* Fix fmt issue

* Support ListStreams for drop nth

* Use DropNthIterator instead

* Found a more elegant way to deal with the check for no upper bound input

* Add extra checks for negative inputs or to < from for ranges

Co-authored-by: Stefan Stanciulescu <test@test.com>
2022-06-13 20:49:59 -07:00
..
assets refactor html module (#5246) 2022-04-20 08:50:14 -05:00
src Fix drop nth bug (#5312) 2022-06-13 20:49:59 -07:00
tests Force floats to output a decimal in nuon (#5768) 2022-06-14 05:45:07 +12:00
build.rs Look up git commit hash ourselves, drop libgit2 dependency (#5548) 2022-05-16 13:57:25 +12:00
Cargo.toml Attempts to add a command that checks if nushell is running with admin priveleges (#5712) 2022-06-06 06:55:23 -05:00
LICENSE Include license text in all crates (#5094) 2022-04-08 10:47:13 +02:00