renderer

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package renderer handles formatting and displaying commit data in various output formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Format    string // "text" or "table"
	Style     string // "normal" or "markdown"
	ShowIcon  bool
	ShowScope bool
}

Config holds printer configuration options.

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

Printer formats and outputs commit data according to configuration.

func NewPrinter

func NewPrinter(cfg Config) *Printer

NewPrinter creates a new Printer instance with the given configuration.

func (*Printer) Print

func (p *Printer) Print(w io.Writer, repoName string, commits []entity.Commit)

Print outputs formatted commit data to the provided writer.

func (*Printer) PrintTasks

func (p *Printer) PrintTasks(w io.Writer, tasks []entity.Task)

PrintTasks outputs formatted task data to the provided writer.

Jump to

Keyboard shortcuts

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