( path []string, value any, target aghconfig.WriteTarget, redacted bool, lifecycle configMutationLifecycle, )
| 497 | } |
| 498 | |
| 499 | func 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 | |
| 524 | func newConfigPathCommand(deps commandDeps) *cobra.Command { |
| 525 | var ( |
no test coverage detected