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

Function resolveUpdateManager

internal/cli/update.go:98–107  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

96}
97
98func resolveUpdateManager(deps commandDeps) (updateManager, error) {
99 homePaths, err := deps.resolveHome()
100 if err != nil {
101 return nil, err
102 }
103 if deps.newUpdateManager == nil {
104 return nil, errors.New("cli: update manager factory is required")
105 }
106 return deps.newUpdateManager(homePaths)
107}
108
109func applyAvailableUpdate(
110 cmd *cobra.Command,

Callers 1

runUpdateCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected