tui

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUG = false

Variables

This section is empty.

Functions

func DecodeAutoDetect added in v0.0.2

func DecodeAutoDetect(src []byte) (string, error)

func TuiStatusBar

func TuiStatusBar(text string) tview.Primitive

func TuiTitleBar

func TuiTitleBar(text string) tview.Primitive

Types

type Config

type Config struct {
	Repos map[string]ConfigRepos `yaml:"repos"`
}

type ConfigRepos

type ConfigRepos struct {
	Url string `yaml:"url"`
}

type SummaryLogRequest

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

type SvnInfoXml

type SvnInfoXml struct {
	Entry struct {
		Kind       string `xml:"kind,attr"`
		Path       string `xml:"path,attr"`
		Revision   string `xml:"revision,attr"`
		Url        string `xml:"url"`
		Repository struct {
			Root string `xml:"root"`
			Uuid string `xml:"uuid"`
		} `xml:"repository"`
	} `xml:"entry"`
}

type SvnLogXml

type SvnLogXml struct {
	Logentry []struct {
		Revision string `xml:"revision,attr"`
		Author   string `xml:"author"`
		Date     string `xml:"date"`
		Msg      string `xml:"msg"`
		Path     []struct {
			PropMods     string `xml:"prop-mods,attr"`
			TextMods     string `xml:"text-mods,attr"`
			Kind         string `xml:"kind,attr"`
			Action       string `xml:"action,attr"`
			CopyFromPath string `xml:"copyfrom-path,attr"`
			CopyFromRev  string `xml:"copyfrom-rev,attr"`
			Path         string `xml:",chardata"`
		} `xml:"paths>path"`
	} `xml:"logentry"`
}

type Tui

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

func New

func New(repos_url string) *Tui

func NewRoot

func NewRoot() *Tui

func (*Tui) BackScreen

func (t *Tui) BackScreen()

func (*Tui) ChangeScreen

func (t *Tui) ChangeScreen(repos string, screen string)

func (*Tui) CreateApp

func (t *Tui) CreateApp(repos string, screen string)

func (*Tui) NewTuiDiff

func (t *Tui) NewTuiDiff(repos string, path string, rev string)

func (*Tui) NewTuiLog

func (t *Tui) NewTuiLog(repos string, path string)

func (*Tui) NewTuiRev

func (t *Tui) NewTuiRev(repos string, path string, rev string)

func (*Tui) NewTuiRoot

func (t *Tui) NewTuiRoot()

func (*Tui) NewTuiTree

func (t *Tui) NewTuiTree(repos string, path string)

func (*Tui) Run

func (t *Tui) Run() error

func (*Tui) SvnDiff

func (t *Tui) SvnDiff(repos string, path string, rev string) string

func (*Tui) SvnInfo

func (t *Tui) SvnInfo(url string) *SvnInfoXml

func (*Tui) SvnLog

func (t *Tui) SvnLog(repos string, path string, fromrev string, torev string, count int) *SvnLogXml

func (*Tui) SvnLogSummary

func (t *Tui) SvnLogSummary(repos string, path string) *SvnLogXml

func (*Tui) SvnLs

func (t *Tui) SvnLs(repos string, path string) string

func (*Tui) SvnWorkerInit

func (t *Tui) SvnWorkerInit()

func (*Tui) TuiLogUpdateWorker

func (t *Tui) TuiLogUpdateWorker(repos string, path string, table *tview.Table)

func (*Tui) TuiPanic

func (t *Tui) TuiPanic(v string)

func (*Tui) TuiTreeUpdate

func (t *Tui) TuiTreeUpdate(repos string, path string, table *tview.Table)

func (*Tui) TuiTreeUpdateSummary

func (t *Tui) TuiTreeUpdateSummary(ch chan SummaryLogRequest, repos string, path string, idx int, file string)

func (*Tui) TuiTreeUpdateSummaryWorker

func (t *Tui) TuiTreeUpdateSummaryWorker(ch chan SummaryLogRequest, table *tview.Table)

type TuiScreen

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

Jump to

Keyboard shortcuts

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