support display of non-repos
This commit is contained in:
9
main.go
9
main.go
@@ -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 {
|
||||
fmt.Println(cpath)
|
||||
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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user