Skip to content

Add -i flag back to get and select#8488

Merged
rgwood merged 3 commits intonushell:mainfrom
rgwood:ignore-errors
Mar 16, 2023
Merged

Add -i flag back to get and select#8488
rgwood merged 3 commits intonushell:mainfrom
rgwood:ignore-errors

Conversation

@rgwood
Copy link
Copy Markdown
Contributor

@rgwood rgwood commented Mar 16, 2023

#8379 removed the -i flag from get and select because the new ? functionality covers most of the same use cases. However, #8480 made me realize that -i is still useful when dealing with cell paths in variables.

This PR re-adds the -i flag to get and select. It works by just marking every member in the cell path as optional, which will behave slightly differently than -i used to (previously it would suppress any errors, even type errors) but IMO that's OK.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 16, 2023

Codecov Report

Merging #8488 (ddd980f) into main (106ca65) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8488      +/-   ##
==========================================
- Coverage   68.07%   68.06%   -0.01%     
==========================================
  Files         621      621              
  Lines      100010    99958      -52     
==========================================
- Hits        68081    68036      -45     
+ Misses      31929    31922       -7     
Impacted Files Coverage Δ
crates/nu-command/src/filters/get.rs 100.00% <100.00%> (ø)
crates/nu-command/src/filters/select.rs 91.02% <100.00%> (+0.44%) ⬆️

... and 6 files with indirect coverage changes

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.

1 participant