Home

ugit @57e00fa690c07ce8c87ec04a8a0703f0257bf52d - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
ugit / contrib / dev.nu
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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"
  }
}