We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22e529f + 42b3163 commit b2cbaa3Copy full SHA for b2cbaa3
cmd/bashbrew/cmd-cat.go
@@ -7,9 +7,10 @@ import (
7
"strings"
8
"text/template"
9
10
- "github.com/urfave/cli"
+ "github.com/docker-library/bashbrew/architecture"
11
"github.com/docker-library/bashbrew/manifest"
12
"github.com/docker-library/bashbrew/pkg/templatelib"
13
+ "github.com/urfave/cli"
14
)
15
16
var DefaultCatFormat = `
@@ -55,6 +56,12 @@ func cmdCat(c *cli.Context) error {
55
56
"arch": func() string {
57
return arch
58
},
59
+ "ociPlatform": func(arch string) *architecture.OCIPlatform {
60
+ if ociArch, ok := architecture.SupportedArches[arch]; ok {
61
+ return &ociArch
62
+ }
63
+ return nil
64
+ },
65
"namespace": func() string {
66
return namespace
67
0 commit comments