nushell/crates/nu-command/src
Antoine Stevan c5e1b64b40
remove random integer in favor of random int (#10568)
related to
- https://github.com/nushell/nushell/pull/10520

# Description
this PR is a followup to https://github.com/nushell/nushell/pull/10520
and removes the `random integer` command completely, in favor of `random
int`.

# User-Facing Changes
`random integer` has been fully moved to `random int`
```nushell
> random integer 0..1
Error: nu::parser::extra_positional

  × Extra positional argument.
   ╭─[entry #1:1:1]
 1 │ random integer 0..1
   ·        ───┬───
   ·           ╰── extra positional argument
   ╰────
  help: Usage: random
```

# Tests + Formatting
tests have been moved from
`crates/nu-command/tests/commands/random/integer.rs` to
`crates/nu-command/tests/commands/random/int.rs`

# After Submitting
mention in 0.87.0 release notes
2023-10-19 18:42:07 +02:00
..
bytes Add long options for bits and bytes (#10601) 2023-10-05 18:45:28 +02:00
charting Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
conversions remove into decimal (#10341) 2023-10-10 20:05:44 +02:00
database Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
date fix clippy (#10659) 2023-10-10 03:31:15 +13:00
debug add a debug info command to show memory info (#10711) 2023-10-14 12:28:48 -05:00
env Fix editor config for reedline and config nu/env (#10535) 2023-09-29 16:36:03 +02:00
experimental Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
filesystem Allow filesystem commands to access files with glob metachars in name (#10694) 2023-10-18 13:31:15 -05:00
filters Allow empty list inputs in group-by and return empty record (#10730) 2023-10-19 12:20:52 +02:00
formats Remove to xml --pretty (#10668) 2023-10-19 18:41:54 +02:00
generators Add long options for generators and math (#10752) 2023-10-19 18:17:42 +02:00
hash Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
help Add 'help escapes' command for quick reference of nushell string escapes (#10522) 2023-09-30 09:04:27 -05:00
math Add long options for generators and math (#10752) 2023-10-19 18:17:42 +02:00
misc Add long options for misc and network (#10753) 2023-10-19 18:16:44 +02:00
network Add long options for misc and network (#10753) 2023-10-19 18:16:44 +02:00
path add examples with .. and / to path join (#10620) 2023-10-09 18:58:32 +02:00
platform Allow filesystem commands to access files with glob metachars in name (#10694) 2023-10-18 13:31:15 -05:00
random remove random integer in favor of random int (#10568) 2023-10-19 18:42:07 +02:00
removed Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00
shells Fix usage for the exit command. (#9450) 2023-06-16 10:09:02 +02:00
strings fix clippy (#10659) 2023-10-10 03:31:15 +13:00
system Fix clippy in registry_query.rs (#10652) 2023-10-09 16:19:20 +08:00
viewers Revert "Port command examples to long option" (#10597) 2023-10-04 09:41:13 +13:00
default_context.rs remove random integer in favor of random int (#10568) 2023-10-19 18:42:07 +02:00
example_test.rs feat: Add unfold command (#10489) 2023-09-30 09:08:06 -05:00
lib.rs Move eval_hook to nu-cmd-base (#10146) 2023-08-29 23:46:50 +02:00
progress_bar.rs cp progress bar implementation (#8012) 2023-02-22 11:57:38 -08:00
sort_utils.rs Use slices directly instead of &Vec (#10328) 2023-09-12 11:38:20 +08:00