Fix "bashbrew --namespace foo list --repos bar" (should prefix with namespace)
This commit is contained in:
parent
a40a54d4d8
commit
e4869c6dd1
|
|
@ -2,6 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"path"
|
||||||
|
|
||||||
"github.com/codegangsta/cli"
|
"github.com/codegangsta/cli"
|
||||||
"github.com/docker-library/go-dockerlibrary/manifest"
|
"github.com/docker-library/go-dockerlibrary/manifest"
|
||||||
|
|
@ -33,7 +34,7 @@ func cmdList(c *cli.Context) error {
|
||||||
|
|
||||||
if onlyRepos {
|
if onlyRepos {
|
||||||
if r.TagEntry == nil {
|
if r.TagEntry == nil {
|
||||||
fmt.Printf("%s\n", r.RepoName)
|
fmt.Printf("%s\n", path.Join(namespace, r.RepoName))
|
||||||
} else {
|
} else {
|
||||||
for _, tag := range r.Tags(namespace, uniq, r.TagEntry) {
|
for _, tag := range r.Tags(namespace, uniq, r.TagEntry) {
|
||||||
fmt.Printf("%s\n", tag)
|
fmt.Printf("%s\n", tag)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue