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

upgrade to 0.91 (#776)

update argx.nu, docker.nu, git-v2.nu, kubernetes.nu, ssh.nu, and nvim.nu
to support 0.91 syntax.

---------

Co-authored-by: nash <nash@iffy.me>
This commit is contained in:
fj0r 2024-03-06 20:08:26 +08:00 committed by GitHub
parent 351691f118
commit 0fd766871f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 39 additions and 27 deletions

View file

@ -7,10 +7,10 @@ export def get-sign [cmd] {
mut r = []
for it in $x {
if $it.parameter_type == 'switch' {
if not ($it.short_flag | is-empty) {
if ($it.short_flag | is-not-empty) {
$s ++= $it.short_flag
}
if not ($it.parameter_name | is-empty) {
if ($it.parameter_name | is-not-empty) {
$s ++= $it.parameter_name
}
} else if $it.parameter_type == 'named' {