output

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBulkResults

func FormatBulkResults(results []BulkResult, format OutputFormat) (string, error)

FormatBulkResults formats bulk results based on the output format

func FormatHistoryResults

func FormatHistoryResults(results []HistoryResult, format OutputFormat) (string, error)

FormatHistoryResults formats history results based on the output format

func FormatRelease

func FormatRelease(release *github.Release, format OutputFormat) (string, error)

FormatRelease formats a single release based on the output format

Types

type BulkResult

type BulkResult struct {
	Repository string `json:"repository"`
	Tag        string `json:"tag,omitempty"`
	Error      string `json:"error,omitempty"`
}

BulkResult represents the result of processing a single repository in bulk operations

type HistoryResult

type HistoryResult struct {
	Repository        string `json:"repository"`
	HistoricalVersion string `json:"historical_version"`
	CurrentVersion    string `json:"current_version,omitempty"`
	HasUpdate         bool   `json:"has_update"`
	Error             string `json:"error,omitempty"`
}

HistoryResult represents the result of comparing historical version with current release

type OutputFormat

type OutputFormat string

OutputFormat represents the output format type

const (
	// FormatText outputs in plain text format (default)
	FormatText OutputFormat = "text"
	// FormatJSON outputs in JSON format
	FormatJSON OutputFormat = "json"
)

Jump to

Keyboard shortcuts

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