MCPcopy Create free account
hub / github.com/compozy/agh / updateRecordFromState

Function updateRecordFromState

internal/cli/update.go:267–278  ·  view source on GitHub ↗
(state aghupdate.State)

Source from the content-addressed store, hash-verified

265}
266
267func updateRecordFromState(state aghupdate.State) updateRecord {
268 return updateRecord{
269 Status: strings.TrimSpace(string(state.Status)),
270 InstallMethod: strings.TrimSpace(state.InstallMethod),
271 Managed: state.Managed,
272 CurrentVersion: strings.TrimSpace(state.CurrentVersion),
273 LatestVersion: strings.TrimSpace(state.LatestVersion),
274 ReleaseURL: strings.TrimSpace(state.ReleaseURL),
275 Recommendation: strings.TrimSpace(state.Recommendation),
276 Message: strings.TrimSpace(state.Message),
277 }
278}
279
280func updateBundle(record updateRecord) outputBundle {
281 rows := []keyValue{

Callers 1

runUpdateCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected