nushell/crates/nu-command/src/core_commands
Leon 9945241b77
Remove deprecated --numbered flag from four commands (#7777)
# Description

Remove `--numbered` from ~~`for`~~, `each`, `par-each`, `reduce` and
`each while`. These all provide indexes (numbering) via the optional
second param to their closures.

EDIT: Closes #6986.

# User-Facing Changes

Every command that had `--numbered` listed as "deprecated" in their help
docs is affected.

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass

# After Submitting

If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.

---------

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2023-02-02 16:59:58 -06:00
..
overlay Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
alias.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
ast.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
break_.rs New commands: break, continue, return, and loop (#7230) 2022-11-25 09:39:16 +13:00
commandline.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
const_.rs Fix const examples (#7610) 2022-12-27 15:44:03 +08:00
continue_.rs New commands: break, continue, return, and loop (#7230) 2022-11-25 09:39:16 +13:00
debug.rs Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00
def_env.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
def.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
describe.rs Make stream info visible to users in describe (#7589) 2023-01-03 21:08:05 -08:00
do_.rs make do -i works with liststream (#7889) 2023-02-02 00:04:53 +01:00
echo.rs Reduced LOC by replacing several instances of Value::Int {}, Value::Float{}, Value::Bool {}, and Value::String {} with Value::int(), Value::float(), Value::boolean() and Value::string() (#7412) 2022-12-09 11:37:51 -05:00
error_make.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
export_alias.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
export_def_env.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
export_def.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
export_extern.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
export_use.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
export.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
extern_.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
for_.rs Remove deprecated --numbered flag from four commands (#7777) 2023-02-02 16:59:58 -06:00
help_aliases.rs Expand Nushell's help system (#7611) 2022-12-30 17:44:37 +02:00
help_commands.rs make help commands search term don't generate $nothing (#7896) 2023-01-28 18:57:26 -06:00
help_modules.rs Allow main command to define top-level module command (#7764) 2023-01-22 21:34:15 +02:00
help_operators.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
help.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
hide_env.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
hide.rs Remove environment variable hiding from hide (#7687) 2023-01-05 20:08:43 +02:00
if_.rs Add OneOf shape to fix else (#7385) 2022-12-08 08:58:54 +13:00
ignore.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
let_.rs Initial support for parse-time constants (#7436) 2022-12-22 00:21:03 +02:00
loop_.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
metadata.rs Fix the syntax highlighting in help metadata (#7628) 2022-12-29 17:45:55 +01:00
mod.rs Expand Nushell's help system (#7611) 2022-12-30 17:44:37 +02:00
module.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
mut_.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
register.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
return_.rs New commands: break, continue, return, and loop (#7230) 2022-11-25 09:39:16 +13:00
try_.rs Continue and Break on Try/Catch (#7683) 2023-01-05 21:41:51 +01:00
use_.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
version.rs Apply more recent/nightly clippy lints (#7916) 2023-01-30 14:06:36 +01:00
while_.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00