pkg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Organization   string
	Repository     string
	ProjectID      int64
	ColumnsPerPage int
}

Config contains configuration properties for GTUI.

type Dependencies

type Dependencies struct {
	Github providers.Github
	Logger zerolog.Logger
}

type GTUIClient

type GTUIClient struct {
	Config
	Dependencies
	// contains filtered or unexported fields
}

GTUIClient defines a client for GTUI.

func NewGTUIClient

func NewGTUIClient(cfg Config, deps Dependencies) *GTUIClient

NewGTUIClient creates a tui client with all the configs and dependencies needed.

func (*GTUIClient) ListEnterHandler

func (g *GTUIClient) ListEnterHandler(i int, mainText string, secondaryText string, shortcut rune)

ListEnterHandler handles issue enter presses for a list.

func (*GTUIClient) ListInputCapture

func (g *GTUIClient) ListInputCapture(currentColumn *column, list *tview.List) func(event *tcell.EventKey) *tcell.EventKey

ListInputCapture handles focus cycling of lists with <TAB> and the moving around of issues.

func (*GTUIClient) Start

func (g *GTUIClient) Start() error

Start launches the GTUI App.

Directories

Path Synopsis
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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