Config Change
Config Change
Section titled “Config Change”Configuration for config change hooks with source-based command execution.
Commands run when configuration changes. Exit code 2 blocks the change, except when source is policy_settings (cannot be blocked).
Configuration Properties
Section titled “Configuration Properties”commands
Section titled “commands”Map of source patterns to command configurations. Keys are glob patterns matching source names (e.g., “user_settings”, ”*”).
| Attribute | Value |
|---|---|
| Type | object |
| Default | {} |
Nested Types
Section titled “Nested Types”This section uses the following nested type definitions:
ConfigChangeCommand Type
Section titled “ConfigChangeCommand Type”Configuration for individual config change commands with optional messages
Properties:
| Property | Type | Default | Description |
|---|---|---|---|
maxOutputLines | `integer | null` | null |
message | `string | null` | null |
notifyPerCommand | `boolean | null` | null |
run | string | - | The shell command to execute |
showCommand | `boolean | null` | true |
showStderr | `boolean | null` | null |
showStdout | `boolean | null` | null |
timeout | `integer | null` | null |
See Also
Section titled “See Also”- Configuration Overview - Complete reference for all configuration options