MCPcopy Create free account
hub / github.com/conforma/cli / Output

Method Output

internal/tracker/tracker.go:89–97  ·  view source on GitHub ↗

Output serializes the Tracker state as YAML

()

Source from the content-addressed store, hash-verified

87
88// Output serializes the Tracker state as YAML
89func (t Tracker) Output() ([]byte, error) {
90 out, err := yaml.Marshal(t)
91 if err != nil {
92 return nil, err
93 }
94
95 // sorts the YAML document making it deterministic
96 return yamlfmt.Format(bytes.NewBuffer(out), true)
97}
98
99var oneDay = time.Hour * 24
100

Callers 3

TestTrackerAddKeepsOrderFunction · 0.80
TrackFunction · 0.80
NewTestCommandFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestTrackerAddKeepsOrderFunction · 0.64