AutoYADM commit: 2025-06-30 15:33:01
This commit is contained in:
parent
623f1c5dee
commit
94cd0f49ff
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
function hut_init --argument-names vis --argument-names repo --argument-names desc
|
function hut_init --argument-names vis --argument-names repo --argument-names desc
|
||||||
if test (count $argv) != 3
|
if test "$(count $argv)" != 3
|
||||||
echo Require three args: visibility repo description
|
echo Require three args: visibility repo description
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
|
@ -7,8 +7,9 @@ function hut_init --argument-names vis --argument-names repo --argument-names de
|
||||||
mkdir "$repo"
|
mkdir "$repo"
|
||||||
cd "$repo"
|
cd "$repo"
|
||||||
git init
|
git init
|
||||||
else if not test -d "$repo" && test "$(path basename $(path resolve.))" = "$repo"
|
else if not test -d "$repo" && test "$(path basename $(path resolve .))" = "$repo"
|
||||||
git init
|
git init
|
||||||
end
|
end
|
||||||
hut git create "$repo" -v "$vis" -d "$desc"
|
set output "$(hut git create "$repo" -v "$vis" -d "$desc")"
|
||||||
|
git remote add origin "$output"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue