nushell/crates/nu-command/src
Stefan Holderbach 4dcaf2a201
Rename/deprecate range to slice (#14825)
# Description
As the `range` command has an ambiguous name (does it construct a range
type?, does it iterate a range like `seq`) replace it with a more
descriptive verb of what it does: `slice`

Closes #14130
# User-Facing Changes
`range` is now deprecated and replaced in whole by `slice` with the same
behavior.
`range` will be removed in `0.103.0`

# Tests + Formatting
Tests have been updated to use `slice`

# After submitting

- [ ] prepare PR for `nu_scripts` (several usages of `range` to be
fixed)
- [ ] update documentation usages of `range` after release
2025-01-17 06:21:32 -06:00
..
bytes Implementing ByteStream interuption on infinite stream (#13552) 2025-01-11 13:28:08 -08:00
charting Add Filesize type (#14369) 2024-11-29 21:24:17 +00:00
conversions into datetime: noop when input is a datetime (#14845) 2025-01-16 23:38:42 +01:00
database Remove usages of internal_span (#14700) 2024-12-30 16:47:06 +08:00
date Remove deprecated commands (#14726) 2025-01-07 07:37:51 +08:00
debug Add flag to debug profile to output duration field as Value::Duration (#14749) 2025-01-09 17:09:16 -06:00
env fix error propagation in export-env (#14847) 2025-01-16 13:59:39 -06:00
experimental Start to Add WASM Support Again (#14418) 2024-11-30 07:57:11 -06:00
filesystem Handle permission denied error at nu_engine::glob_from (#14679) 2025-01-07 15:44:55 -06:00
filters Rename/deprecate range to slice (#14825) 2025-01-17 06:21:32 -06:00
formats Add run-time type checking for command pipeline input (#14741) 2025-01-08 23:09:47 +01:00
generators Add input support to generate (#14804) 2025-01-14 11:44:31 -06:00
hash add binary as input to hash commands (#13923) 2024-09-25 16:47:52 +08:00
help Add new operators has and not-has (#14841) 2025-01-17 06:20:00 -06:00
math better error message for "sum", "product", and "sum_of_squares" (#14711) 2024-12-31 16:04:23 -06:00
misc Enable conditional source and use patterns by allowing null as a no-op module (#14773) 2025-01-09 06:37:27 -06:00
network more closure serialization (#14698) 2025-01-07 11:51:22 -06:00
path Add path self command for getting absolute paths to files at parse time (#14303) 2024-12-06 08:19:08 -06:00
platform Remove usages of internal_span (#14700) 2024-12-30 16:47:06 +08:00
random Add Filesize type (#14369) 2024-11-29 21:24:17 +00:00
removed Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
shells Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
stor fix stor reset when there are foreign keys (#14772) 2025-01-07 10:28:26 -06:00
strings replace regex crate with fancy_regex (#14646) 2025-01-01 17:37:50 -06:00
system Remove required positional arguments from run-external and exec (#14765) 2025-01-16 06:10:28 +08:00
viewers replace icons in grid with devicons + color (#14827) 2025-01-14 16:51:30 -06:00
default_context.rs Rename/deprecate range to slice (#14825) 2025-01-17 06:21:32 -06:00
example_test.rs Implementing ByteStream interuption on infinite stream (#13552) 2025-01-11 13:28:08 -08:00
lib.rs Start to Add WASM Support Again (#14418) 2024-11-30 07:57:11 -06:00
progress_bar.rs Cut down unnecessary lint allows (#14335) 2024-11-15 19:24:39 +01:00
sort_utils.rs Remove deprecated commands (#14726) 2025-01-07 07:37:51 +08:00