The highest tagged major version is
v2 .
Discover Packages
github.com/crittylabs/critty
internal
workspace
package
Version:
v1.8.1
Opens a new window with list of versions in this module.
Published: Oct 28, 2026
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package workspace prepares bounded, reviewable edits outside source control.
CreateScratch allocates an empty directory without registering file edits.
type File struct {
Exists bool `json:"exists"`
Digest string `json:"digest,omitempty"`
Mode fs .FileMode `json:"mode,omitempty"`
}
type Manifest struct {
Version int `json:"version"`
ID string `json:"id"`
Root string `json:"root"`
Files map[string ]File `json:"files"`
}
type Receipt struct {
Snapshot string `json:"snapshot"`
Pending string `json:"pending,omitempty"`
Temp string `json:"temp,omitempty"`
Applied []string `json:"applied"`
Complete bool `json:"complete"`
}
type Snapshot struct {
Manifest
RequestVersion int `json:"request_version,omitempty"`
After map[string ]File `json:"after"`
Diff string `json:"diff"`
}
Apply verifies the entire batch before writing, then journals each replacement.
The caller must validate human authorization for the supplied snapshot.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.