1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 14:47:47 +00:00

remove the boolean vars (#182)

This commit is contained in:
JT 2022-03-20 08:11:54 +13:00 committed by GitHub
parent d7bb156d80
commit ec2eaab836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 39 additions and 39 deletions

View file

@ -374,9 +374,9 @@ 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 || $value == $false {
if $value == $nothing || $value == false {
""
} else if $value == $true {
} else if $value == true {
$"($flag_start)($name)"
} else {
$"($flag_start)($name) ($value)"
@ -408,8 +408,8 @@ def "nu-complete winget install name" [] {
{
completions: $completions
options: {
case_sensitive: $false
positional: $false
case_sensitive: false
positional: false
}
}
}