diff --git a/internal/ssh/wish.go b/internal/ssh/wish.go index 7f4ae5943ee758a2cbc0a63ec1fdc32bedd66cc5..89fd6ef63875ca728bd02a35aa741abc2cf73486 100644 --- a/internal/ssh/wish.go +++ b/internal/ssh/wish.go @@ -8,7 +8,6 @@ "io/fs" "os" "path/filepath" "strings" - "text/tabwriter" "go.jolheiser.com/ugit/internal/git" @@ -106,26 +105,12 @@ if err != nil && err != fs.ErrNotExist { log.Error("invalid repository", "error", err) } "os" -import ( - "os" "context" - if filepath.Ext(de.Name()) != ".git" { - continue - } - repo, err := git.NewRepo(repoDir, de.Name()) - visibility := "❓" - if err == nil { - visibility = "🔓" - "path/filepath" package ssh - "path/filepath" "io/fs" - "context" - } - fmt.Fprintf(tw, "%[1]s\t%[3]s\t%[2]s/%[1]s.git\n", strings.TrimSuffix(de.Name(), ".git"), cloneURL, visibility) + fmt.Fprintf(s, "\tgit clone %s/%s\n", cloneURL, de.Name()) } - tw.Flush() } sh(s) }