wsl

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDistro = gowsl.DefaultDistro
View Source
var RegisteredDistros = gowsl.RegisteredDistros

Functions

This section is empty.

Types

type Distro

type Distro struct {
	gowsl.Distro
}

func GetDistro

func GetDistro(ctx context.Context, wslDistroName WslName) (*Distro, error)

func (*Distro) WslCommand

func (d *Distro) WslCommand(ctx context.Context, cmd string) *WslCmd

type WslCmd

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

func GetDistroCmd

func GetDistroCmd(ctx context.Context, wslDistroName string, cmd string) (*WslCmd, error)

func (*WslCmd) CombinedOutput

func (c *WslCmd) CombinedOutput() (out []byte, err error)

func (*WslCmd) ExitCode added in v0.10.0

func (c *WslCmd) ExitCode() int

func (*WslCmd) ExitSignal added in v0.14.0

func (c *WslCmd) ExitSignal() string

func (*WslCmd) GetProcess

func (c *WslCmd) GetProcess() *os.Process

func (*WslCmd) GetProcessState

func (c *WslCmd) GetProcessState() *os.ProcessState

func (*WslCmd) Output

func (c *WslCmd) Output() (out []byte, err error)

func (*WslCmd) Run

func (c *WslCmd) Run() error

func (*WslCmd) SetStderr

func (c *WslCmd) SetStderr(stderr io.Writer)

func (*WslCmd) SetStdin

func (c *WslCmd) SetStdin(stdin io.Reader)

func (*WslCmd) SetStdout

func (c *WslCmd) SetStdout(stdout io.Writer)

func (*WslCmd) Start

func (c *WslCmd) Start() (err error)

func (*WslCmd) StderrPipe

func (c *WslCmd) StderrPipe() (r io.ReadCloser, err error)

func (*WslCmd) StdinPipe

func (c *WslCmd) StdinPipe() (w io.WriteCloser, err error)

func (*WslCmd) StdoutPipe

func (c *WslCmd) StdoutPipe() (r io.ReadCloser, err error)

func (*WslCmd) Wait

func (c *WslCmd) Wait() (err error)

type WslName

type WslName struct {
	Distro string `json:"distro"`
}

Jump to

Keyboard shortcuts

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