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:
parent
d7bb156d80
commit
ec2eaab836
8 changed files with 39 additions and 39 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue