support display of non-repos
This commit is contained in:
9
main.go
9
main.go
@@ -15,6 +15,7 @@ const (
|
|||||||
defaultDir = "."
|
defaultDir = "."
|
||||||
green = "\033[32m"
|
green = "\033[32m"
|
||||||
red = "\033[31m"
|
red = "\033[31m"
|
||||||
|
grey = "\033[90m"
|
||||||
reset = "\033[0m"
|
reset = "\033[0m"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -42,7 +43,12 @@ func main() {
|
|||||||
|
|
||||||
status, err := getStatus(cpath)
|
status, err := getStatus(cpath)
|
||||||
if err != nil {
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,6 +57,7 @@ func main() {
|
|||||||
} else {
|
} else {
|
||||||
fmt.Println(cpath)
|
fmt.Println(cpath)
|
||||||
}
|
}
|
||||||
|
// fmt.Println(status.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user