Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildResult ¶
type BuildResult struct {
Version string `json:"version"`
Commit string `json:"commit"`
ShortCommit string `json:"short_commit"`
Date string `json:"date"`
OutputDir string `json:"output_dir"`
Targets []string `json:"targets"`
Binaries []string `json:"binaries,omitempty"`
Message string `json:"message,omitempty"`
}
BuildResult represents the result of a build command
type ErrorResult ¶
ErrorResult represents an error result
type ImageResult ¶
type ImageResult struct {
Version string `json:"version"`
Commit string `json:"commit"`
ShortCommit string `json:"short_commit"`
Repository string `json:"repository"`
Tags []string `json:"tags"`
Platforms []string `json:"platforms"`
Pushed bool `json:"pushed"`
Message string `json:"message,omitempty"`
}
ImageResult represents the result of an image command
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 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