view

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MDRenderer

func MDRenderer() (*glamour.TermRenderer, error)

MDRenderer constructs markdown renderer.

func ValidIssueColumns

func ValidIssueColumns() []string

ValidIssueColumns returns valid columns for issue list.

func ValidSprintColumns

func ValidSprintColumns() []string

ValidSprintColumns returns valid columns for sprint list.

Types

type Board

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

Board is a board view.

func NewBoard

func NewBoard(data []*jira.Board, opts ...BoardOption) *Board

NewBoard initializes a board.

func (Board) Render

func (b Board) Render() error

Render renders the board view.

type BoardOption

type BoardOption func(*Board)

BoardOption is a functional option to wrap board properties.

func WithBoardWriter

func WithBoardWriter(w io.Writer) BoardOption

WithBoardWriter sets a writer for the board.

type DisplayFormat

type DisplayFormat struct {
	Plain        bool
	Delimiter    string
	CSV          bool
	NoHeaders    bool
	NoTruncate   bool
	Columns      []string
	FixedColumns uint
	Comments     uint
	TableStyle   tui.TableStyle
	Timezone     string
}

DisplayFormat is a issue display type.

type EpicIssueFunc

type EpicIssueFunc func(string) []*jira.Issue

EpicIssueFunc provides issues for the epic.

type EpicList

type EpicList struct {
	Project string
	Server  string
	Data    []*jira.Issue
	Issues  EpicIssueFunc
	Display DisplayFormat
}

EpicList is a list view for epics.

func (*EpicList) Render

func (el *EpicList) Render() error

Render renders the epic explorer view.

type Issue

type Issue struct {
	Server  string
	Data    *jira.Issue
	Display DisplayFormat
	Options IssueOption
}

Issue is a list view for issues.

func (Issue) Render

func (i Issue) Render() error

Render renders the view.

func (Issue) RenderedOut

func (i Issue) RenderedOut(renderer *glamour.TermRenderer) (string, error)

RenderedOut translates raw data to the format we want to display in.

func (Issue) String

func (i Issue) String() string

type IssueList

type IssueList struct {
	Project    string
	Server     string
	Data       []*jira.Issue
	Display    DisplayFormat
	Refresh    tui.RefreshFunc
	FooterText string
}

IssueList is a list view for issues.

func (*IssueList) Render

func (l *IssueList) Render() error

Render renders the view.

type IssueOption

type IssueOption struct {
	NumComments uint
}

IssueOption is filtering options for an issue.

type Project

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

Project is a project view.

func NewProject

func NewProject(data []*jira.Project, opts ...ProjectOption) *Project

NewProject initializes a project.

func (Project) Render

func (p Project) Render() error

Render renders the project view.

type ProjectOption

type ProjectOption func(*Project)

ProjectOption is a functional option to wrap project properties.

func WithProjectWriter

func WithProjectWriter(w io.Writer) ProjectOption

WithProjectWriter sets a writer for the project.

type ProjectVersionOptions

type ProjectVersionOptions func(*Release)

ProjectVersionOptions is a functional option to wrap project version properties.

func WithReleaseWriter

func WithReleaseWriter(w io.Writer) ProjectVersionOptions

WithReleaseWriter sets a writer for the project release.

type Release

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

Release is a release view.

func NewRelease

func NewRelease(data []*jira.ProjectVersion, opts ...ProjectVersionOptions) *Release

NewRelease constructs a project release command.

func (Release) Render

func (r Release) Render() error

Render renders the project release view.

type ServerInfo

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

ServerInfo is a serveronfo view.

func NewServerInfo

func NewServerInfo(data *jira.ServerInfo, opts ...ServerInfoOption) *ServerInfo

NewServerInfo initializes server info struct.

func (ServerInfo) Render

func (s ServerInfo) Render() error

Render renders the serverinfo view.

type ServerInfoOption

type ServerInfoOption func(*ServerInfo)

ServerInfoOption is a functional option to wrap serverinfo properties.

func WithServerInfoWriter

func WithServerInfoWriter(w io.Writer) ServerInfoOption

WithServerInfoWriter sets a writer for the serverinfo view.

type SprintIssueFunc

type SprintIssueFunc func(boardID, sprintID int) []*jira.Issue

SprintIssueFunc provides issues in the sprint.

type SprintList

type SprintList struct {
	Project string
	Board   string
	Server  string
	Data    []*jira.Sprint
	Issues  SprintIssueFunc
	Display DisplayFormat
}

SprintList is a list view for sprints.

func (*SprintList) Render

func (sl *SprintList) Render() error

Render renders the sprint explorer view.

func (*SprintList) RenderInTable

func (sl *SprintList) RenderInTable() error

RenderInTable renders the list in table view.

Jump to

Keyboard shortcuts

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