diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 08:39:57 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 08:39:57 -0500 |
| commit | 39ae1d8ae8597679c490609ca5c796b1272e8be6 (patch) | |
| tree | 615522dee6f1405569ad571c052f4c3260f35e9a /main.go | |
| parent | 7be655b964eca1ce0c725e43cab8c0596f894b07 (diff) | |
move urls to show repos
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -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 +} |
