Help us shape the future of Go! Take the 2026 Go Developer Survey

session

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 9 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) Attach added in v0.0.2

func (s *Session) Attach(cmd string) error

func (*Session) Post added in v0.0.2

func (s *Session) Post(ctx context.Context, client *client.Ref, 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