nushell/crates/nu-command/src
Amirhossein Akhlaghpour 67d1249b2b
Validate input range of du flags (#7962)
# Description
Fix #7953
Fix flags on `du` which should be positive and added some tests. 

# User-Facing Changes

_(List of all changes that impact the user experience here. This helps
us keep track of breaking changes.)_

# 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.
2023-02-06 21:34:32 +01:00
..
bits Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
bytes Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
charting Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
conversions report which datetime couldn't be converted (#7980) 2023-02-06 14:17:07 -06:00
core_commands Fix def-env docs according to docs#761 (#7972) 2023-02-06 11:00:44 +01:00
database Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
dataframe Apply more recent/nightly clippy lints (#7916) 2023-01-30 14:06:36 +01:00
date report which datetime couldn't be converted (#7980) 2023-02-06 14:17:07 -06:00
deprecated Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
env Load env pwd (#7963) 2023-02-05 23:40:46 +01:00
experimental Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
filesystem Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
filters Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
formats Added fix for #7970 - Upgraded toml crate version from version from 0.5.8 to 0.7.1 for package nu-command (#7990) 2023-02-06 14:15:14 -06:00
generators Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
hash Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
math Update few examples of math commands (#7987) 2023-02-06 13:43:00 +01:00
misc Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
network Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
path Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
platform Validate input range of du flags (#7962) 2023-02-06 21:34:32 +01:00
random Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
shells Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
strings Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
system Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
viewers Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
default_context.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
example_test.rs Remove deprecated --numbered flag from four commands (#7777) 2023-02-02 16:59:58 -06:00
input_handler.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
lib.rs Progress bar Implementation (#7661) 2023-01-10 20:57:48 -05:00
progress_bar.rs Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
sort_utils.rs Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00