MCPcopy Create free account
hub / github.com/blobcache/blobcache / printVSpec

Function printVSpec

src/blobcachecmd/volume.go:112–119  ·  view source on GitHub ↗
(c star.Context, vspec blobcache.VolumeSpec)

Source from the content-addressed store, hash-verified

110}
111
112func printVSpec(c star.Context, vspec blobcache.VolumeSpec) error {
113 data, err := json.MarshalIndent(vspec, "", " ")
114 if err != nil {
115 return nil
116 }
117 _, err = c.StdOut.Write(data)
118 return err
119}
120
121var vspecLocalCmd = star.Command{
122 Metadata: star.Metadata{Short: "print a volume spec, suitable for piping to mkvol"},

Callers 1

volume.goFile · 0.85

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected