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

Function configSetRecordForLocalWrite

internal/cli/config.go:499–522  ·  view source on GitHub ↗
(
	path []string,
	value any,
	target aghconfig.WriteTarget,
	redacted bool,
	lifecycle configMutationLifecycle,
)

Source from the content-addressed store, hash-verified

497}
498
499func configSetRecordForLocalWrite(
500 path []string,
501 value any,
502 target aghconfig.WriteTarget,
503 redacted bool,
504 lifecycle configMutationLifecycle,
505) configSetRecord {
506 outputValue := value
507 if redacted {
508 outputValue = aghconfig.RedactedValue()
509 }
510 return configSetRecord{
511 Path: strings.Join(path, "."),
512 Value: outputValue,
513 Scope: string(target.Scope()),
514 Target: target.Path(),
515 Redacted: redacted,
516 Lifecycle: lifecycle.Lifecycle,
517 Applied: lifecycle.Applied,
518 NextAction: lifecycle.NextAction,
519 RestartRequired: lifecycle.RestartRequired,
520 RestartScope: lifecycle.RestartScope,
521 }
522}
523
524func newConfigPathCommand(deps commandDeps) *cobra.Command {
525 var (

Callers 1

runConfigSetCommandFunction · 0.85

Calls 2

ScopeMethod · 0.80
PathMethod · 0.65

Tested by

no test coverage detected