Repository navigation
Rename all?, any? and empty? - #6464
Conversation
all?, any? and empty?all?, any? and empty?
all?, any? and empty?all?, any? and empty?
|
I'd the name the empty command The One thing to add here is to move the old commands to deprecated: https://github.com/nushell/nushell/blob/34e58bc5d65b5f10e0e1cd0ec66f0b031ea41975/crates/nu-command/src/deprecated/deprecated_commands.rs |
|
We could take it step further and remove we could make it |
|
I am for removing the One benefit of having a separate For example the empty string could have different effects: |
|
Yeah, there are edge cases with If most people want the |
|
@sholderbach like this? |
|
I would consider the first list non-empty but evaluating
|
|
To add to your list of things that will have to happen with this PR on the documentation side and handling of breaking changes would be a short section for the release notes after it landed. PR for the current release notes: |
|
LGTM 👍 |
|
@adamijak Would you be willing to update the documentation for these changes? Not really the command help in the documentation, since that is systematically generated via a script, but any other references to these commands? |
Account for nushell/nushell#6464
Account for nushell/nushell#6464 `any?`/`all?`/`empty?` to `any`/`all`/`is-empty`
Account for nushell/nushell#6464 `any?`/`all?`/`empty?` to `any`/`all`/`is-empty`
|
I have updated the docs and scripts under our organization accordingly, should be good to land |
Account for nushell/nushell#6464 `any?`/`all?`/`empty?` to `any`/`all`/`is-empty`
…l`/`is-empty` (#287) * Replace `all?` with `all` for nushell/nushell#6464 * Replace `any?` with `any` for nushell/nushell#6464 * Replace `emtpy?` with `is-empty` Account for nushell/nushell#6464 * Ignore for `before_v0.60` scripts
* add 68 blog * add string distance and named durations * Upgrade all vuepress plugins and fix doc search navigation by pressing `enter` key (#587) * Upgrade all vuepress plugins and fix doc search navigation by pressing `enter` key (#586) * chore: upgrade vuepress plugins fix doc search navigation by enter key * Update ci workflow * chore: update ci * chore: update ci * Upgrade vuepress and all related plugins to improve build performance (#588) * Breaking change note: dequestionmarked commands Depends on landing nushell/nushell#6464 * Update types_of_data.md with missing values (#589) 'Duration' and 'File sizes' sections were incomplete with values missing. For the duration `1month` I wrote "30 days" for clarification. A month can be anywhere from 28–31 days depending on the month while the program always seems to treat a month as 30 days. * Update former question mark commands in docs (#590) Account for nushell/nushell#6464 `any?`/`all?`/`empty?` to `any`/`all`/`is-empty` * Document path split breaking change * Add Homebrew PATH documentation * Add module and overlay changes * Reword source change; Add config table entries * Rewrite dequestionmarking * Oops * More rewording * Reformulate next steps * Add links * Add external completer section * Update 2022-09-06-nushell-0_68.md Co-authored-by: Justin Ma <[email protected]> Co-authored-by: sholderbach <[email protected]> Co-authored-by: Christer Jensen <[email protected]> Co-authored-by: Reilly Wood <[email protected]> Co-authored-by: kubouch <[email protected]> Co-authored-by: JT <[email protected]>
…l`/`is-empty` (#287) * Replace `all?` with `all` for nushell/nushell#6464 * Replace `any?` with `any` for nushell/nushell#6464 * Replace `emtpy?` with `is-empty` Account for nushell/nushell#6464 * Ignore for `before_v0.60` scripts
…l`/`is-empty` (#287) * Replace `all?` with `all` for nushell/nushell#6464 * Replace `any?` with `any` for nushell/nushell#6464 * Replace `emtpy?` with `is-empty` Account for nushell/nushell#6464 * Ignore for `before_v0.60` scripts
Description
Rename
all?,any?andempty?toall,anyandis-emptyfor sake of simplicity and consistency.?syntax did not really aprove readability. For me it made it worse.?syntax for any other nushell feature.Work to be done
If this we confirm this PR, we also should
Tests
Make sure you've done the following:
Add tests that cover your changes, either in the command examples, the crate/tests folder, or in the /tests folder.Try to think about corner cases and various ways how your changes could break. Cover them with tests.If adding tests is not possible, please document in the PR body a minimal example with steps on how to reproduce so one can verify your change works.Make sure you've run and fixed any issues with these commands:
cargo fmt --all -- --checkto check standard code formatting (cargo fmt --allapplies these changes)cargo clippy --workspace --features=extra -- -D warnings -D clippy::unwrap_used -A clippy::needless_collectto check that you're using the standard code stylecargo test --workspace --features=extrato check that all the tests pass