Home

ugit @main - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
tree log patch
feat: add simple dev contrib Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmYCLDUACgkQuFOtpdp7 v3opQxAAl02qFt81s3ztbJMKxftMdLRz6qG96tQJGYq1s9NioVAA4mA+8pyeQ30z iZVSIPGelOgiW6KO15U4ITL0VRURuYqhp+6oCUDt16qeoaPiGO4kb7uQhq9RDSLq 5gk+5zBAAZZPTJUPNtSppxAuazZgE2f4IRPmBkcTe5CbEUcYCHhqPzFIZHGQkg4C DKYtTNvHqR5dpURUVquhM3DIZQWHOYJKCfJmOTqO2ht/4AnjgtAhbD3GijG+0v07 3gH/GUvrZidN5/OY2aTrbAV0Ofu54ocYH4BVBg4jFFoBE++VFgKRYV1zYti1Mpyo 4Hqbvc1U3Idk9D66pO4/D2Q6lbQk5DvVszU78x5vT6N23UfeNH2XF1h40RVTkR8Z O+eT7HPKjFuzqqAKK148ftm6zCMfUrUKy0PQzpLvTYkIdB7wI40NGw/LtBN1Zu36 22hfr0Jx3XdxZ7I2xtkkvj84++/AgH1Ya+q/zO2l9kb97V9IC0xjnA/mqY3IZmGZ k/eZB9wFN4WPYWpWXvTdt3Y4oMZ54+Tywbvb66HTVp82P5PMnzqjUdkHtqR3qfgk VrnqVE252r4AKteOPw2Lu27kkN74PiK1VPteMQpNSzaRQ0O7rMNsplg3xZsFlISa cUv1TIZJsuO4FThhatnWWGu/ovY3oQG17Y83G5QUV1lH+WIOXfs= =0Nfj -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
8 months ago
1 changed files, 19 additions(+), 0 deletions(-)
I contrib/dev.nu
diff --git a/contrib/dev.nu b/contrib/dev.nu
new file mode 100644
index 0000000000000000000000000000000000000000..d892dc57467b83882e8fa1468919c385279c41c9
--- /dev/null
+++ b/contrib/dev.nu
@@ -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"
+  }
+}