summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 08:39:57 -0500
committerJeff Carr <[email protected]>2025-10-03 08:39:57 -0500
commit39ae1d8ae8597679c490609ca5c796b1272e8be6 (patch)
tree615522dee6f1405569ad571c052f4c3260f35e9a /main.go
parent7be655b964eca1ce0c725e43cab8c0596f894b07 (diff)
move urls to show repos
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
+}