explorer

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Navigator struct {
	common.Common

	SelectedModule    string
	HighlightedModule string
	HighlightedIndex  int

	InParentColumn bool
	InChildColumn  bool

	CurrentGrandParentPreviewColumn []string
	CurrentParentColumn             []string
	CurrentChildColumn              []string
	CurrentGrandChildPreviewColumn  []string

	CurrentPreviewColumn []string

	FrameHeight int
	// contains filtered or unexported fields
}

func New

func New(requestOutputModule string, c common.Common, opts ...Option) (*Navigator, error)
func (n *Navigator) AddModule(modName string)

TODO(colin): call this from somewhere. same place as where the modselect.AddModule is called

func (n *Navigator) Init() tea.Cmd
func (n *Navigator) Update(msg tea.Msg) (tea.Model, tea.Cmd)
func (n *Navigator) View() string
type NavigatorMemory struct {
	// contains filtered or unexported fields
}

func NewNavigatorMemory

func NewNavigatorMemory() *NavigatorMemory
func (n *NavigatorMemory) GetLastSelectedChildOf(modName string) (string, bool)
func (n *NavigatorMemory) GetLastSelectedParentOf(modName string) (string, bool)
func (n *NavigatorMemory) SetLastSelectedChildOf(modName, childName string)
func (n *NavigatorMemory) SetLastSelectedParentOf(modName, parentName string)

type Option

type Option func(*Navigator)

func WithModuleGraph

func WithModuleGraph(graph *manifest.ModuleGraph) Option

Jump to

Keyboard shortcuts

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