summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go19
1 files changed, 16 insertions, 3 deletions
diff --git a/main.go b/main.go
index c050541..63810c3 100644
--- a/main.go
+++ b/main.go
@@ -163,11 +163,11 @@ func main() {
okExit("")
}
- if argv.Show.Urls != nil {
- me.forge.PrintForgedTable(me.forge.Repos)
+ found := findRepos()
+ if showUrls() {
+ me.forge.PrintForgedTable(found)
okExit("")
}
- found := findRepos()
// print out the repos
if argv.All {
me.forge.PrintHumanTableFull(found)
@@ -206,3 +206,16 @@ func main() {
}
okExit("")
}
+
+func showUrls() bool {
+ if argv.Show == nil {
+ return false
+ }
+ if argv.Show.Repo == nil {
+ return false
+ }
+ if argv.Show.Repo.Urls != nil {
+ return true
+ }
+ return false
+}