nushell/crates/nu-command/src
singh-priyank 773dafa8ac
Fix negative value file size for "into filesize" (issue #12396) (#12443)
# Description
Add support for using negative values file size for `into filesize`.
This will help in sorting the file size if negative values are also
passed.

**Before**

![image](https://github.com/nushell/nushell/assets/43441496/e115b4b3-7526-4379-8dc0-f4f4e44839a1)
**After**

![image](https://github.com/nushell/nushell/assets/43441496/4a75fb40-ebe6-46eb-b9d2-55f37db7a6fa)

# User-Facing Changes
- User can now sort negative filesize also

# Tests + Formatting
- 🟢 toolkit fmt
- 🟢 toolkit clippy
- 🟢 toolkit test
- 🟢 toolkit test stdlib

# After Submitting

---------

Co-authored-by: Priyank Singh <priyank.singh@soroco.com>
2024-04-07 16:50:11 +00:00
..
bytes Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
charting Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
conversions Fix negative value file size for "into filesize" (issue #12396) (#12443) 2024-04-07 16:50:11 +00:00
database Make drop notification timing for plugin custom values more consistent (#12341) 2024-04-04 09:13:25 +02:00
date Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
debug explain refactor (#12432) 2024-04-06 18:55:22 -05:00
env Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
experimental Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
filesystem Make auto-cd check for permissions (#12342) 2024-04-06 08:56:46 -05:00
filters Range refactor (#12405) 2024-04-06 09:04:56 -05:00
formats Range refactor (#12405) 2024-04-06 09:04:56 -05:00
generators Prevent panic on date overflow (#12427) 2024-04-06 15:16:49 +00:00
hash Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
help ♻️ rework some help strings (#12306) 2024-03-27 08:41:02 -05:00
math Range refactor (#12405) 2024-04-06 09:04:56 -05:00
misc Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
network Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
path Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
platform Bump crate-ci/typos and fix typos (#12381) 2024-04-04 09:59:21 +02:00
random Range refactor (#12405) 2024-04-06 09:04:56 -05:00
removed Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
shells Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
stor Fix typo in help stor import (#12442) 2024-04-07 08:09:24 -05:00
strings Fix nushell#10591: encode returns error with utf-16le and utf-16be encodings (nushell#10591) (#12411) 2024-04-06 09:07:55 -05:00
system Use safe nix API instead of libc (#12315) 2024-03-30 14:49:54 +01:00
viewers Range refactor (#12405) 2024-04-06 09:04:56 -05:00
default_context.rs Use nightly clippy to kill dead code/fix style (#12334) 2024-03-30 09:17:28 +08:00
example_test.rs Initial --params implementation (#12249) 2024-03-24 15:40:21 -05:00
lib.rs Initial --params implementation (#12249) 2024-03-24 15:40:21 -05:00
progress_bar.rs remove cp-old (#11622) 2024-01-24 07:38:15 +08:00
sort_utils.rs Rename Value::CustomValue to Value::Custom (#12309) 2024-03-27 22:10:56 +01:00