Module workflow

Module workflow 

Source
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§

MultiSelectResultData
Result from multi-select including selected items and whether diff preview is enabled
SingleSelectResult
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
ConfirmResultAction
Result from confirmation screen
FollowPhase
Phase within the Follow workflow
UpdateResult
Result of calling update()
WorkflowData
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.