mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 14:47:47 +00:00
replace filter
with where
(#1135)
This PR tries to clean up the use of `filter` by replacing it with `where`. I did not test each script. closes #1134 closes #1133
This commit is contained in:
parent
84c25bbc6d
commit
32cdc96414
25 changed files with 66 additions and 66 deletions
|
@ -5,7 +5,7 @@ export extern "rye" [
|
|||
def "nu-complete rye" [] {
|
||||
^rye --help
|
||||
| lines
|
||||
| filter { str starts-with " " }
|
||||
| where { str starts-with " " }
|
||||
| each {str trim}
|
||||
| parse "{value} {description}"
|
||||
| str trim
|
||||
|
@ -120,7 +120,7 @@ def "nu-complete rye tools" [] {
|
|||
^rye tools --help
|
||||
| lines
|
||||
| drop 1
|
||||
| filter { str starts-with " " }
|
||||
| where { str starts-with " " }
|
||||
| each {str trim}
|
||||
| parse "{value} {description}"
|
||||
| str trim
|
||||
|
@ -135,7 +135,7 @@ def "nu-complete rye self" [] {
|
|||
^rye self --help
|
||||
| lines
|
||||
| drop 1
|
||||
| filter { str starts-with " " }
|
||||
| where { str starts-with " " }
|
||||
| each {str trim}
|
||||
| parse "{value} {description}"
|
||||
| str trim
|
||||
|
@ -150,7 +150,7 @@ def "nu-complete rye toolchain" [] {
|
|||
^rye toolchain --help
|
||||
| lines
|
||||
| drop 1
|
||||
| filter { str starts-with " " }
|
||||
| where { str starts-with " " }
|
||||
| each {str trim}
|
||||
| parse "{value} {description}"
|
||||
| str trim
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue