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

Function configLifecycleFromSettings

internal/cli/config.go:1658–1670  ·  view source on GitHub ↗
(classification settingspkg.MutationClassification)

Source from the content-addressed store, hash-verified

1656}
1657
1658func configLifecycleFromSettings(classification settingspkg.MutationClassification) configMutationLifecycle {
1659 nextAction := contract.SettingsApplyNextActionNone
1660 if classification.RestartRequired {
1661 nextAction = contract.SettingsApplyNextActionRestartDaemon
1662 }
1663 return configMutationLifecycle{
1664 Lifecycle: string(classification.Lifecycle),
1665 Applied: classification.Applied,
1666 RestartRequired: classification.RestartRequired,
1667 RestartScope: classification.RestartScope,
1668 NextAction: string(nextAction),
1669 }
1670}
1671
1672func restartRequiredConfigLifecycle() configMutationLifecycle {
1673 return configMutationLifecycle{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected