truthound plugins disable¶
Disable (deactivate) an active plugin.
Synopsis¶
Arguments¶
| Argument | Required | Description |
|---|---|---|
NAME |
Yes | Plugin name to disable |
Description¶
The plugin disable command deactivates an active plugin:
- Deactivates the plugin
- Keeps it loaded but inactive
- Preserves configuration for re-enabling
State Transitions¶
Examples¶
Disable Plugin¶
Output:
Verify After Disable¶
# Disable the plugin
truthound plugins disable my-validator
# Verify state changed
truthound plugins list
Output:
┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Name ┃ Version ┃ Type ┃ State ┃
┡━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━┩
│ my-validator │ 0.1.0 │ validator │ inactive │
└─────────────────┴─────────┴───────────┴──────────┘
Disable and Re-enable¶
# Disable temporarily
truthound plugins disable my-validator
# Re-enable when needed
truthound plugins enable my-validator
Use Cases¶
1. Temporary Deactivation¶
# Disable for testing without the plugin
truthound plugins disable my-validator
# Run validation without the plugin
truthound check data.csv
# Re-enable when done
truthound plugins enable my-validator
2. Troubleshooting¶
# Disable suspected problematic plugin
truthound plugins disable buggy-plugin
# Check if issue persists
truthound check data.csv
# If issue resolved, plugin was the cause
3. Selective Validation¶
# Disable plugins not needed for this run
truthound plugins disable extra-validator
# Run validation with fewer plugins
truthound check data.csv
# Re-enable after
truthound plugins enable extra-validator
4. A/B Testing¶
# Test with plugin
truthound check data.csv --output with-plugin.json
# Disable plugin
truthound plugins disable my-validator
# Test without plugin
truthound check data.csv --output without-plugin.json
# Compare results
Error Handling¶
Plugin Not Found or Error¶
Output:
Difference from Unload¶
| Action | disable | unload |
|---|---|---|
| State after | inactive | discovered |
| Loaded in memory | Yes | No |
| Quick re-enable | Yes | No (requires load) |
| Use case | Temporary | Cleanup |
Exit Codes¶
| Code | Condition |
|---|---|
| 0 | Success |
| 1 | Error (plugin not found, disable failed) |
Related Commands¶
plugin enable- Enable a pluginplugin unload- Unload a pluginplugin list- List all plugins