ui

package
v0.0.0-...-a37b07e Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(imageName string, analysis *image.AnalysisResult, treeStack filetree.Comparer) error

Run is the UI entrypoint.

Types

type Controller

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

func NewCollection

func NewCollection(g *gocui.Gui, imageName string, analysis *image.AnalysisResult, cache filetree.Comparer) (*Controller, error)

func (*Controller) Render

func (c *Controller) Render() error

Render flushes the state objects to the screen.

func (*Controller) ToggleFilterView

func (c *Controller) ToggleFilterView() error

func (*Controller) ToggleView

func (c *Controller) ToggleView() (err error)

ToggleView switches between the file view and the layer view and re-renders the screen.

func (*Controller) Update

func (c *Controller) Update() error

Update refreshes the state objects for future rendering.

func (*Controller) UpdateAndRender

func (c *Controller) UpdateAndRender() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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