Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add is-not-empty command as a QOL improvement #11991

Merged
merged 1 commit into from Feb 28, 2024

Conversation

fdncred
Copy link
Collaborator

@fdncred fdncred commented Feb 27, 2024

Description

This PR adds is-not-empty as a counterpart to is-empty. It's the same code but negates the results. This command has been asked for many times. So, I thought it would be nice for our community to add it just as a quality-of-life improvement. This allows people to stop writing their def is-not-empty [] { not ($in | is-empty) } custom commands.

I'm sure there will be some who disagree with adding this, I just think it's like we have in and not-in and helps fill out the language and makes it a little easier to use.

User-Facing Changes

Tests + Formatting

After Submitting

@fdncred
Copy link
Collaborator Author

fdncred commented Feb 28, 2024

rename to not-empty by request

@IanManske
Copy link
Member

IanManske commented Feb 28, 2024

@fdncred I've pranked you and changed my mind 😛. I think is-not-empty should be fine.

Also, I looked over the code and it looks good!

@fdncred
Copy link
Collaborator Author

fdncred commented Feb 28, 2024

ok, thanks @IanManske. appreciate your eyes on it.

@fdncred fdncred merged commit 345edbb into nushell:main Feb 28, 2024
19 checks passed
@fdncred fdncred deleted the add_is_not_empty branch February 28, 2024 23:11
@hustcer hustcer added this to the v0.91.0 milestone Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants