mirror of https://git.jolheiser.com/ugit.git
feat: add simple dev contrib
Signed-off-by: jolheiser <john.olheiser@gmail.com>ffdhall
parent
c0fb1e8988
commit
1b9796ed0b
|
@ -0,0 +1,19 @@
|
||||||
|
def main [user = "jolheiser", base_url = "https://git.jolheiser.com", repos = ["ugit", "helix.drv", "tmpl"]] {
|
||||||
|
|
||||||
|
# Clean
|
||||||
|
try {
|
||||||
|
rm -r .ugit/
|
||||||
|
rm -r .ssh/
|
||||||
|
}
|
||||||
|
|
||||||
|
# SSH
|
||||||
|
mkdir .ssh
|
||||||
|
http get $"https://github.com/($user).keys" | save --force .ssh/authorized_keys
|
||||||
|
|
||||||
|
# Git
|
||||||
|
mkdir .ugit
|
||||||
|
for $repo in $repos {
|
||||||
|
git clone --bare $"($base_url)/($repo).git" $".ugit/($repo).git"
|
||||||
|
{"private": false, "description": $repo} | save $".ugit/($repo).git/ugit.json"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue