Documentation
¶
Overview ¶
Package undo records reversible file edits and applies rollbacks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoUndo = errors.New("no undo records available")
Functions ¶
This section is empty.
Types ¶
type Record ¶
type RestoreReport ¶
type RestoreReport struct {
Kind string `json:"kind"`
Action string `json:"action"`
Status string `json:"status"`
ID string `json:"id"`
Tool string `json:"tool"`
Path string `json:"path"`
Restored bool `json:"restored"`
Removed bool `json:"removed"`
Bytes int `json:"bytes"`
Remaining int `json:"remaining"`
}
func RestoreLast ¶
func RestoreLast(workspace string) (RestoreReport, error)
Click to show internal directories.
Click to hide internal directories.