Skip to content

Commit 0fc0b09

Browse files
committed
Add a "defaults" template function that returns "manifest.DefaultManifestEntry" (especially for doing "ClearDefaults" to be able to fully replicate the default output of "bashbrew cat", but in a different order)
1 parent 374f44b commit 0fc0b09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/bashbrew/cmd-cat.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ func cmdCat(c *cli.Context) error {
8888
}
8989
return filtered
9090
},
91+
"defaults": func() manifest.Manifest2822Entry {
92+
return manifest.DefaultManifestEntry
93+
},
9194
}).Parse(format)
9295
if err != nil {
9396
return cli.NewMultiError(tmplMultiErr, err)

0 commit comments

Comments
 (0)