From 58cb590e871f4b185e0c2bb3b7b7668ea25ce6d1 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 2 May 2025 18:50:13 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-02 18:50:13 --- .config/fish/functions/newrepo.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/fish/functions/newrepo.fish b/.config/fish/functions/newrepo.fish index 421a7340..72653d83 100644 --- a/.config/fish/functions/newrepo.fish +++ b/.config/fish/functions/newrepo.fish @@ -1,4 +1,4 @@ -function newrepo --argument-names name +function newrepo argparse h/help p/private P/public s/srht g/github a/all d/description= -- $argv function help echo Help menu @@ -25,6 +25,7 @@ function newrepo --argument-names name else if set -lq _flag_a && set -lq _flag_s || set -lq _flag_g set -a errors 'provider: all must be alone!' end + set -l name $argv[1] if test (count $errors) -ne 0 for i in $errors echo ERROR: $i @@ -35,7 +36,7 @@ function newrepo --argument-names name if set -lq _flag_s || set -lq _flag_a set -l add if set -lq _flag_d - set add --description $_flag_d + set add --description \"$_flag_d\" end echo hut git create $name --visibility $visibility $add end