truthound plugins enable¶
Enable (activate) a loaded plugin.
Synopsis¶
Arguments¶
| Argument | Required | Description |
|---|---|---|
NAME |
Yes | Plugin name to enable |
Description¶
The plugin enable command activates a loaded plugin:
- Loads the plugin automatically if not already loaded
- Activates the plugin for use
- Makes it available for validation
- Changes state from loaded/inactive to active
State Transitions¶
Examples¶
Enable Plugin¶
Output:
Enable After Load Without Activate¶
# Load without activating
truthound plugins load my-validator --no-activate
# Enable when ready
truthound plugins enable my-validator
Re-enable Disabled Plugin¶
Output:
Verify After Enable¶
# Enable the plugin
truthound plugins enable my-validator
# Verify it's active
truthound plugins list --state active
Use Cases¶
1. Activate After Inspection¶
# Load without activating
truthound plugins load my-validator --no-activate
# Inspect plugin
truthound plugins info my-validator
# Enable if satisfied
truthound plugins enable my-validator
2. Re-enable Temporarily Disabled Plugin¶
# Previously disabled for testing
truthound plugins enable my-validator
# Use in validation
truthound check data.csv --validators my-validator
3. Selective Plugin Activation¶
# Load multiple plugins
truthound plugins load validator-a --no-activate
truthound plugins load validator-b --no-activate
truthound plugins load validator-c --no-activate
# Enable only what's needed
truthound plugins enable validator-a
truthound plugins enable validator-c
Error Handling¶
Plugin Not Found¶
Output:
Note: If the plugin is discovered but not loaded, the
enablecommand will automatically load it first before enabling.
Exit Codes¶
| Code | Condition |
|---|---|
| 0 | Success |
| 1 | Error (plugin not found, enable failed) |
Related Commands¶
plugin disable- Disable a pluginplugin load- Load a pluginplugin list- List all plugins