cli

package
v3.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 36 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"`
	CommitterName  string  `json:"committer_name"`
	CommitterEmail string  `json:"committer_email"`
	CommittedAt    string  `json:"committed_at"`
}

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"`
	TextContentTableBytes   int64   `json:"text_content_table_bytes"`
	BinaryContentTableBytes int64   `json:"binary_content_table_bytes"`
	RefsTableBytes          int64   `json:"refs_table_bytes"`
	MetadataTableBytes      int64   `json:"metadata_table_bytes"`
	SyncStateTableBytes     int64   `json:"sync_state_table_bytes"`
	IndexesBytes            int64   `json:"indexes_bytes"`
	TotalOnDiskBytes        int64   `json:"total_on_disk_bytes"`
	ActualDataBytes         int64   `json:"actual_data_bytes"`
	OverheadBytes           int64   `json:"overhead_bytes"`
	OverheadPercent         float64 `json:"overhead_percent,omitempty"`
	DataCompressionRatio    float64 `json:"data_compression_ratio,omitempty"`
	DataSpaceSavedPercent   float64 `json:"data_space_saved_percent,omitempty"`
}

type JSONXpatchStats

type JSONXpatchStats struct {
	Commits       *JSONXpatchTableStats `json:"commits,omitempty"`
	TextContent   *JSONXpatchTableStats `json:"text_content,omitempty"`
	BinaryContent *JSONXpatchTableStats `json:"binary_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"`
	AvgDepth         float64 `json:"avg_depth"`
	CacheHitPercent  float64 `json:"cache_hit_percent"`
}

Jump to

Keyboard shortcuts

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