localcommand

package
v0.0.0-...-b64c738 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalCommand

type LocalCommand struct {
	// contains filtered or unexported fields
}

func New

func New(command string, argv []string, options ...Option) (*LocalCommand, error)

func (*LocalCommand) Close

func (lcmd *LocalCommand) Close() error

func (*LocalCommand) Read

func (lcmd *LocalCommand) Read(p []byte) (n int, err error)

func (*LocalCommand) SetWinSize

func (lcmd *LocalCommand) SetWinSize(width int, height int) error

func (*LocalCommand) Write

func (lcmd *LocalCommand) Write(p []byte) (n int, err error)

type Option

type Option func(*LocalCommand)

func WithCmdCredential

func WithCmdCredential(credential *syscall.Credential) Option

func WithEnv

func WithEnv(env []string) Option

func WithPtyWin

func WithPtyWin(width, height int) Option

Jump to

Keyboard shortcuts

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