support display of non-repos

This commit is contained in:
lif
2026-05-05 11:35:22 +01:00
parent 7e86590b12
commit acd8e33b3b
2 changed files with 8 additions and 1 deletions

View File

View File

@@ -15,6 +15,7 @@ const (
defaultDir = "."
green = "\033[32m"
red = "\033[31m"
grey = "\033[90m"
reset = "\033[0m"
)
@@ -42,7 +43,12 @@ func main() {
status, err := getStatus(cpath)
if err != nil {
if err.Error() == "repository does not exist" {
// fmt.Println(err)
fmt.Printf("%s%s (%v)%s\n", grey, cpath, "no repo", reset)
} else {
fmt.Println(cpath)
}
continue
}
@@ -51,6 +57,7 @@ func main() {
} else {
fmt.Println(cpath)
}
// fmt.Println(status.String())
}
}