manager

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Text string
}

func (*Command) Execute

func (c *Command) Execute(m *Manager)

type Manager

type Manager struct {
	Root          *node.Node
	PWD           *node.Node
	History       []Command
	ValidCommands []Command
}

func New

func New() Manager

func (*Manager) Execute

func (m *Manager) Execute(command Command)

func (*Manager) GetPWD

func (m *Manager) GetPWD() *node.Node

func (*Manager) GoBack

func (m *Manager) GoBack()

func (*Manager) Initialize

func (m *Manager) Initialize()

func (*Manager) SetPWD

func (m *Manager) SetPWD(n *node.Node)

Jump to

Keyboard shortcuts

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