mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +00:00
refactor git-v2#agree
with input list
(#496)
Co-authored-by: agent <agent@nuc>
This commit is contained in:
parent
b6ecfe3680
commit
08b7ccf84e
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ def agree [prompt] {
|
||||||
} else {
|
} else {
|
||||||
$'($prompt)'
|
$'($prompt)'
|
||||||
}
|
}
|
||||||
(input $prompt | str downcase) in ['y', 'yes', 'ok', 't', 'true', '1']
|
([yes no] | input list $prompt) in [yes]
|
||||||
}
|
}
|
||||||
|
|
||||||
# git status and stash
|
# git status and stash
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue