mix ragex.refactor
(Ragex v0.10.1)
View Source
Interactive refactoring wizard with operation selection and preview.
Usage
# Launch interactive wizard
mix ragex.refactor
# Direct refactoring with parameters (skips wizard)
mix ragex.refactor --operation rename_function --module MyModule --function old_name --new-name new_nameProvides an interactive TUI for selecting and performing refactoring operations:
- rename_function: Rename a function across call sites
- rename_module: Rename a module and update references
- change_signature: Modify function parameters
- extract_function: Extract code into new function
- inline_function: Inline function body into call sites
Features:
- Interactive operation selection
- Fuzzy search for modules and functions
- Parameter validation
- Diff preview before applying
- Conflict detection and warnings
- Progress tracking for multi-file operations