agent

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2014 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Ui *ui.DefaultUi

	// Now, it contain togo's prompt strings.
	Chars string

	// version
	Version string

	// new files path
	NewPath string

	// old files path
	OldPath string
	// contains filtered or unexported fields
}

type Agent present the togo terminate's all attributes.

func NewAgent added in v0.7.0

func NewAgent() *Agent

return a default Agent.

func (*Agent) Add added in v0.1.0

func (agent *Agent) Add()

add a todo.

func (*Agent) Clear added in v0.3.0

func (agent *Agent) Clear()

sugar

func (*Agent) DeletePromp

func (agent *Agent) DeletePromp()

backspace key support

func (*Agent) DisplayAll added in v0.7.0

func (agent *Agent) DisplayAll()

display them.

func (*Agent) DrawPromp

func (agent *Agent) DrawPromp(str string)

draw the promp line.

func (*Agent) FindAndDisplayAll added in v0.7.0

func (agent *Agent) FindAndDisplayAll()

ok, this is owaful.

func (*Agent) FindNewTodos added in v0.7.0

func (agent *Agent) FindNewTodos()

find all undo todos

func (*Agent) Flush added in v0.3.0

func (agent *Agent) Flush()

sugar

func (*Agent) ParseCmd

func (agent *Agent) ParseCmd()

parse command. Now, just support help command to show the help info.

func (*Agent) Quit added in v0.4.0

func (agent *Agent) Quit()

quit.

func (*Agent) Run

func (agent *Agent) Run()

the public api of the Agent package.

func (*Agent) ShowHelp

func (agent *Agent) ShowHelp()

display help info

Jump to

Keyboard shortcuts

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