Skip to main content

Module fix

Module fix 

Source
Expand description

Fix command – diagnose and auto-fix errors from compiler/runtime output.

§Subcommands

  • tldr fix diagnose – parse error text and produce a structured diagnosis
  • tldr fix apply – apply a fix to source code, writing the patched output
  • tldr 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§

FixApplyArgs
Arguments for tldr fix apply
FixArgs
Diagnose and auto-fix errors from compiler/runtime output
FixCheckArgs
Arguments for tldr fix check
FixDiagnoseArgs
Arguments for tldr fix diagnose

Enums§

FixCommand
Fix subcommands