config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDateRange

func ParseDateRange(sinceStr, untilStr string) (*time.Time, *time.Time, error)

ParseDateRange parses the since and until date strings

Types

type Config

type Config struct {
	Org        string
	Repo       string
	Filter     string
	Since      *time.Time
	Until      *time.Time
	JSONOutput bool
	Failed     bool   // Filter for failed deliveries only
	LastFailed bool   // Filter repos where last delivery failed
	Head       int    // Limit to N most recent deliveries per repo (0 = no limit)
	SortBy     string // Sort field and order: "field:order" (e.g., "repository:asc", "timestamp:desc")
	Verbose    bool   // Enable verbose output
}

Config holds the application configuration

func (*Config) GetSortConfig

func (c *Config) GetSortConfig() (field string, ascending bool)

GetSortConfig returns the sort field and whether it should be ascending Returns field name, ascending bool, and defaults based on field type

func (*Config) Validate

func (c *Config) Validate() error

Validate checks that the configuration is valid

Jump to

Keyboard shortcuts

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