session

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreviousOut

type PreviousOut struct {
	CommandLine string
	ExitCode    int
	Output      execx.ProcessOutput
}

type Session

type Session struct {
	Host *host.Host

	History *thread.History

	// Output of a previously executed command.
	PreviousOut *PreviousOut
}

func NewSession

func NewSession() *Session

func (*Session) Chdir

func (s *Session) Chdir(dir string) error

func (*Session) ProcessChat

func (s *Session) ProcessChat(ctx context.Context, client *bootstrap.ClientRef, content string) error

func (*Session) Resolve

func (s *Session) Resolve(path string) (string, error)

Jump to

Keyboard shortcuts

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