AutoYADM commit: 2025-05-02 18:50:13
This commit is contained in:
parent
240cc37ac1
commit
58cb590e87
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue