AutoYADM commit: 2025-05-02 18:50:13

This commit is contained in:
Daniel Fichtinger 2025-05-02 18:50:13 -04:00
parent 240cc37ac1
commit 58cb590e87

View file

@ -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