Expand description
Fix command – diagnose and auto-fix errors from compiler/runtime output.
§Subcommands
tldr fix diagnose– parse error text and produce a structured diagnosistldr fix apply– apply a fix to source code, writing the patched outputtldr fix check– run test command, diagnose failures, apply fixes in a loop
§Examples
# Pipe a Python traceback from clipboard or file
tldr fix diagnose --error-file traceback.txt --source app.py
# Inline error text
tldr fix diagnose --error "NameError: name 'json' is not defined" --source app.py
# Apply fix to source (writes to stdout or --output)
tldr fix apply --error-file traceback.txt --source app.py
# Run test, diagnose, fix, repeat loop
tldr fix check --file src/app.py --test-cmd "pytest tests/test_app.py"Structs§
- FixApply
Args - Arguments for
tldr fix apply - FixArgs
- Diagnose and auto-fix errors from compiler/runtime output
- FixCheck
Args - Arguments for
tldr fix check - FixDiagnose
Args - Arguments for
tldr fix diagnose
Enums§
- FixCommand
- Fix subcommands