Expand description
Workflow state and logic for TUI interactions.
This module contains the pure workflow logic separated from screen handling:
- Workflow data types (Add, Change, Remove, etc.)
- Result types returned by workflows
- Helper functions for URI parsing and diff computation
Structs§
- Multi
Select Result Data - Result from multi-select including selected items and whether diff preview is enabled
- Single
Select Result - Result from single-select including selected item and whether diff preview is enabled
Enums§
- AddPhase
- Phase within the Add workflow
- AppResult
- Result returned by run() - depends on the workflow type
- Confirm
Result Action - Result from confirmation screen
- Follow
Phase - Phase within the Follow workflow
- Update
Result - Result of calling update()
- Workflow
Data - Workflow-specific data tracking the state of the current operation
Functions§
- compute_
diff - Compute a unified diff between the original flake text and the result of applying a change.
- parse_
uri_ and_ infer_ id - Parse a URI and try to infer the ID from it.