Crate scm_record

Source
Expand description

Reusable change selector UI for source control systems.

Modules§

consts
Special runtime variables.
helpers
Helper functions for rendering UI components.

Structs§

Commit
A container of selected changes and commit metadata.
File
The state of a file to be recorded.
RecordState
The state used to render the changes. This is passed into crate::Recorder::new and then updated and returned with crate::Recorder::run.
Recorder
UI component to record the user’s changes.
SectionChangedLine
A changed line inside a Section.
SelectedChanges
The changes for a particular file selected as part of the record operation.
TestingScreenshot
A copy of the contents of the screen at a certain point in time.

Enums§

ChangeType
The type of change in the patch/diff.
Event
FileMode
The file mode.
RecordError
An error which occurred when attempting to record changes.
Section
A section of a file to be rendered and recorded.
SelectedContents
The contents of a file selected as part of the record operation.
TerminalKind
The terminal backend to use.

Traits§

RecordInput
Get user input.