diff options
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 +} |
