Home

ugit @main - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
tree log patch
feat: improve SSH repo list Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmaNoAoACgkQuFOtpdp7 v3qEcQ/+OEzMYlBGmPXQHW1HmwxBBBUU1DOdP7TtXNUp2IqK98wNdba8hffhqKNs AKEYcFncE0uIUpfdmgHsrSMDRb3DwpQdqkU3EFFUzc0yvVEzjTNjbsq8zB5JpOp+ OnY/BeEQq3fVuXwZ4d31XzXEeEGitJxg5JON4L55LH0XLTbWPoZnkckjol1PvvwV cMz4pcJjognTwongEYK5Kh4ep/c6iyuik+vpR9m6gvv5VKlScfjuqb5N5rn8hUb6 gEfeHZLdDvEq7V8O5yRdg4gwmd/aTAwA1GV9pimEQknz7I25sPKzCzTIJ6hcFS66 QtCM6eVFyP0fErUiq4EgYTBp1MuF0SNeIbNi64nFppcAYWCx7s1DyJuA31C3MJn6 kmgi0v6Ya+5cJVY+fUbaxb9yUAT01ePYwXPpb1iKgRKrSM2EJqGwx13MWk5FXgHQ euEU3l43WTEsUiuX07xGt2u4L0YQSWJ/X3uME1xNO4fC9YUvyVx7P/k4Ubfp7KyK 5cyR70bpQR+/GuuA4HpWjxrWgoSHQMb5yA+p29+MQlfbT384vRecME7W60Bauii1 R2xcy2MIA6fuyWf6KZOijy9gPHJiQ3VvKGRW77Afrc0cMWk79XFdi+fq83nLcfME EduvpBzRew7NPYODI2tyG3ZCLpFpx1fgnZplldFIqAHQauNF1y4= =7LOM -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
4 months ago
1 changed files, 17 additions(+), 1 deletions(-)
M internal/ssh/wish.go -> internal/ssh/wish.go
diff --git a/internal/ssh/wish.go b/internal/ssh/wish.go
index 89fd6ef63875ca728bd02a35aa741abc2cf73486..7f4ae5943ee758a2cbc0a63ec1fdc32bedd66cc5 100644
--- a/internal/ssh/wish.go
+++ b/internal/ssh/wish.go
@@ -8,6 +8,7 @@ 	"io/fs"
 	"os"
 	"path/filepath"
 	"strings"
+	"text/tabwriter"
 
 	"go.jolheiser.com/ugit/internal/git"
 
@@ -104,13 +105,28 @@ 				des, err := os.ReadDir(repoDir)
 				if err != nil && err != fs.ErrNotExist {
 					log.Error("invalid repository", "error", err)
 				}
+				tw := tabwriter.NewWriter(s, 0, 0, 1, ' ', 0)
 				for _, de := range des {
+					if filepath.Ext(de.Name()) != ".git" {
+						continue
+	"fmt"
 	"os"
+					repo, err := git.NewRepo(repoDir, de.Name())
+					visibility := "❓"
+	"github.com/charmbracelet/log"
 import (
-	"os"
+	"github.com/charmbracelet/log"
 	"context"
+						if repo.Meta.Private {
+	"github.com/charmbracelet/log"
 	"fmt"
+						}
+					}
+package ssh
 
+	"io/fs"
+				}
+				tw.Flush()
 			}
 			sh(s)
 		}