shell

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 6 Imported by: 3

Documentation

Overview

Package Shell is a basic wrapper around the navstack and breadcrumb packages It provides a basic navigation mechanism while showing breadcrumb view of where the user is within the navigation stack.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Navstack   *navstack.Model
	Breadcrumb breadcrumb.Model
	// contains filtered or unexported fields
}

func New

func New() Model

New creates a new shell model

func (Model) Init

func (m Model) Init() tea.Cmd

Init determines the size of the widow used by the navigation stack.

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update passes messages to the navigation stack.

func (Model) View

func (m Model) View() string

View renders the breadcrumb and the navigation stack.

Jump to

Keyboard shortcuts

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