views

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "v0.30.0"

Functions

func CreateExecInfoView

func CreateExecInfoView() *tview.TextView

func CreateProjectInfoView

func CreateProjectInfoView() *tview.TextView

func CreateRunInfoVIew

func CreateRunInfoVIew() *tview.TextView

func CreateTaskInfoView

func CreateTaskInfoView() *tview.TextView

func ShowHelpModal

func ShowHelpModal()

Types

type Shortcut

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

type TProject

type TProject struct {
	// UI
	Page             *tview.Flex
	ContextView      *tview.Flex
	ProjectTableView *components.TTable
	ProjectTreeView  *components.TTree
	TagView          *components.TList
	PathView         *components.TList

	// Project
	Projects         []dao.Project
	ProjectsFiltered []dao.Project
	ProjectsSelected map[string]bool

	Headers      []string
	ShowHeaders  bool
	ProjectStyle string

	// Tags
	ProjectTags         []string
	ProjectTagsFiltered []string
	ProjectTagsSelected map[string]bool

	// Paths
	ProjectPaths         []string
	ProjectPathsFiltered []string
	ProjectPathsSelected map[string]bool

	// Misc
	Emitter *misc.EventEmitter
	// contains filtered or unexported fields
}

func CreateProjectsData

func CreateProjectsData(
	projects []dao.Project,
	projectTags []string,
	projectPaths []string,
	headers []string,
	prefixNumber int,
	showTitle bool,
	showHeaders bool,
	selectEnabled bool,
	showTags bool,
	showPaths bool,
) *TProject

func (*TProject) CreateProjectsPathsList

func (p *TProject) CreateProjectsPathsList(title string) *components.TList

func (*TProject) CreateProjectsTable

func (p *TProject) CreateProjectsTable(
	selectEnabled bool,
	title string,
	headers []string,
	rows [][]string,
) *components.TTable

func (*TProject) CreateProjectsTagsList

func (p *TProject) CreateProjectsTagsList(title string) *components.TList

func (*TProject) CreateProjectsTree

func (p *TProject) CreateProjectsTree(
	selectEnabled bool,
	title string,
	paths []dao.TNode,
) *components.TTree

type TSpec

type TSpec struct {
	View *tview.Flex

	// Spec
	Output            string
	ClearBeforeRun    bool
	Parallel          bool
	IgnoreErrors      bool
	IgnoreNonExisting bool
	OmitEmptyRows     bool
	OmitEmptyColumns  bool
	// contains filtered or unexported fields
}

func CreateSpecView

func CreateSpecView() *TSpec

func (*TSpec) AddCheckbox

func (spec *TSpec) AddCheckbox(title string, checked *bool) *tview.Checkbox

type TTask

type TTask struct {
	// UI
	Page          *tview.Flex
	TaskTableView *components.TTable
	TaskTreeView  *components.TTree
	ContextView   *tview.Flex

	// Data
	Tasks         []dao.Task
	TasksFiltered []dao.Task
	TasksSelected map[string]bool
	Headers       []string
	ShowHeaders   bool
	TaskStyle     string

	// Misc
	Emitter *misc.EventEmitter
	// contains filtered or unexported fields
}

func CreateTasksData

func CreateTasksData(
	tasks []dao.Task,
	headers []string,
	prefixNumber int,
	showTitle bool,
	showHeaders bool,
	selectEnabled bool,
) *TTask

func (*TTask) CreateTasksTable

func (t *TTask) CreateTasksTable(
	selectEnabled bool,
	title string,
	headers []string,
	rows [][]string,
) *components.TTable

func (*TTask) CreateTasksTree

func (t *TTask) CreateTasksTree(
	selectEnabled bool,
	title string,
	nodes []components.TNode,
) *components.TTree

Jump to

Keyboard shortcuts

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