Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorResult ¶
ErrorResult represents an error result.
type InitResult ¶
type InitResult struct {
OutputPath string `json:"output_path"`
Created bool `json:"created"`
Message string `json:"message,omitempty"`
}
InitResult represents the result of an init command.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles output formatting.
func FromContext ¶
FromContext retrieves the output manager from the context.
func (*Manager) PrintError ¶
PrintError outputs an error in the appropriate format.
type RetagResult ¶ added in v1.3.0
type RetagResult struct {
Tag string `json:"tag"`
FromCommit string `json:"from_commit"`
ToCommit string `json:"to_commit"`
Pushed bool `json:"pushed"`
Message string `json:"message,omitempty"`
}
RetagResult represents the result of a retag command.
type TagResult ¶
type TagResult struct {
Tag string `json:"tag"`
Pushed bool `json:"pushed"`
Version string `json:"version,omitempty"`
Message string `json:"message,omitempty"`
}
TagResult represents the result of a bump command (creates a git tag).
type VersionHistoryEntry ¶
type VersionHistoryEntry struct {
Version string `json:"version"`
Tag string `json:"tag"`
Commit string `json:"commit"`
Date string `json:"date"`
Message string `json:"message,omitempty"`
}
VersionHistoryEntry represents a single version in the history.
type VersionHistoryResult ¶
type VersionHistoryResult struct {
Versions []VersionHistoryEntry `json:"versions"`
Count int `json:"count"`
}
VersionHistoryResult represents the result of a version history command.
type VersionResult ¶
type VersionResult struct {
Version string `json:"version"`
Scheme string `json:"scheme"`
Commit string `json:"commit"`
Dirty bool `json:"dirty,omitempty"`
}
VersionResult represents the result of a version command.
type VersionTagResult ¶
type VersionTagResult struct {
Tag string `json:"tag"`
Version string `json:"version"`
Commit string `json:"commit"`
Date string `json:"date"`
Message string `json:"message,omitempty"`
Exists bool `json:"exists"`
}
VersionTagResult represents the result of querying a specific tag.
Click to show internal directories.
Click to hide internal directories.