wsl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DistroExists

func DistroExists(distro string) bool

DistroExists checks if a specific WSL distro exists

func ExecInDistro

func ExecInDistro(distro string, command string, args ...string) *exec.Cmd

ExecInDistro executes a command in a specific WSL distro

func GetDefaultDistro

func GetDefaultDistro() (string, error)

GetDefaultDistro returns the default WSL distro

func IsAvailable

func IsAvailable() bool

IsAvailable checks if WSL is available (Windows only)

func TranslatePathToWindows

func TranslatePathToWindows(distro, wslPath string) string

TranslatePathToWindows converts a WSL path to Windows UNC path Example: /home/user/project -> \\wsl.localhost\Ubuntu\home\user\project

func ValidateRoot

func ValidateRoot(distro, path string) error

ValidateRoot validates a WSL root configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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