cli

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version information (set at build time)
	Version   = "dev"
	CommitSHA = "unknown"
	BuildDate = "unknown"
)

Functions

func Execute

func Execute() error

Types

type JSONCommitBrief

type JSONCommitBrief struct {
	ID        string `json:"id"`
	ShortID   string `json:"short_id"`
	Message   string `json:"message"`
	Author    string `json:"author"`
	Timestamp string `json:"timestamp"`
}

type JSONFileChange

type JSONFileChange struct {
	Path   string `json:"path"`
	Status string `json:"status"`
}

type JSONLogEntry

type JSONLogEntry struct {
	ID          string  `json:"id"`
	ShortID     string  `json:"short_id"`
	ParentID    *string `json:"parent_id,omitempty"`
	Message     string  `json:"message"`
	AuthorName  string  `json:"author_name"`
	AuthorEmail string  `json:"author_email"`
	Timestamp   string  `json:"timestamp"`
}

JSONLogEntry represents a commit in JSON format

type JSONRepoStats

type JSONRepoStats struct {
	Commits          int64 `json:"commits"`
	FilesTracked     int64 `json:"files_tracked"`
	BlobVersions     int64 `json:"blob_versions"`
	ContentSizeBytes int64 `json:"content_size_bytes"`
}

type JSONStats

type JSONStats struct {
	Repository JSONRepoStats    `json:"repository"`
	Storage    JSONStorageStats `json:"storage"`
	Xpatch     *JSONXpatchStats `json:"xpatch,omitempty"`
}

JSONStats represents stats output in JSON format

type JSONStatus

type JSONStatus struct {
	Branch    string           `json:"branch"`
	Head      *JSONCommitBrief `json:"head,omitempty"`
	Staged    []JSONFileChange `json:"staged"`
	Unstaged  []JSONFileChange `json:"unstaged"`
	Untracked []string         `json:"untracked"`
	Conflicts []string         `json:"conflicts,omitempty"`
}

JSONStatus represents status output in JSON format

type JSONStorageStats

type JSONStorageStats struct {
	CommitsTableBytes  int64   `json:"commits_table_bytes"`
	PathsTableBytes    int64   `json:"paths_table_bytes"`
	FileRefsTableBytes int64   `json:"file_refs_table_bytes"`
	ContentTableBytes  int64   `json:"content_table_bytes"`
	IndexesBytes       int64   `json:"indexes_bytes"`
	TotalBytes         int64   `json:"total_bytes"`
	CompressionRatio   float64 `json:"compression_ratio,omitempty"`
	SpaceSavedPercent  float64 `json:"space_saved_percent,omitempty"`
}

type JSONXpatchStats

type JSONXpatchStats struct {
	Commits *JSONXpatchTableStats `json:"commits,omitempty"`
	Content *JSONXpatchTableStats `json:"content,omitempty"`
}

type JSONXpatchTableStats

type JSONXpatchTableStats struct {
	TotalRows        int64   `json:"total_rows"`
	TotalGroups      int64   `json:"total_groups"`
	KeyframeCount    int64   `json:"keyframe_count"`
	DeltaCount       int64   `json:"delta_count"`
	RawSizeBytes     int64   `json:"raw_size_bytes"`
	CompressedBytes  int64   `json:"compressed_bytes"`
	CompressionRatio float64 `json:"compression_ratio"`
	AvgChainLength   float64 `json:"avg_chain_length"`
	CacheHitPercent  float64 `json:"cache_hit_percent"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL