mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 14:47:47 +00:00
Replace use of $nothing
with null
(#621)
`$nothing` will be deprecated in nu 0.86 This accompanies - https://github.com/nushell/nushell/pull/10478
This commit is contained in:
parent
9ceac61989
commit
6947014306
19 changed files with 40 additions and 40 deletions
|
@ -27,7 +27,7 @@ def parse-fish [] {
|
|||
| flatten # merge them all into a top level label
|
||||
)
|
||||
# default every column in the table to "" to make processing easier
|
||||
# some values having $nothing often breaks nu or requires lots of checking
|
||||
# some values having null often breaks nu or requires lots of checking
|
||||
$data | columns | reduce -f $data { |c, acc|
|
||||
$acc | default "" $c
|
||||
}
|
||||
|
|
|
@ -374,7 +374,7 @@ def "nu-complete winget source type" [] {
|
|||
|
||||
def "nu-complete winget flagify" [name: string, value: any, --short(-s): bool] {
|
||||
let flag_start = if $short { '-' } else { '--' }
|
||||
if $value == $nothing or $value == false {
|
||||
if $value == null or $value == false {
|
||||
""
|
||||
} else if $value == true {
|
||||
$"($flag_start)($name)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue