Fix "bashbrew --namespace foo list --repos bar" (should prefix with namespace)

This commit is contained in:
Tianon Gravi 2020-05-18 17:35:14 -07:00
parent a40a54d4d8
commit e4869c6dd1
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package main
import (
"fmt"
"path"
"github.com/codegangsta/cli"
"github.com/docker-library/go-dockerlibrary/manifest"
@ -33,7 +34,7 @@ func cmdList(c *cli.Context) error {
if onlyRepos {
if r.TagEntry == nil {
fmt.Printf("%s\n", r.RepoName)
fmt.Printf("%s\n", path.Join(namespace, r.RepoName))
} else {
for _, tag := range r.Tags(namespace, uniq, r.TagEntry) {
fmt.Printf("%s\n", tag)