envdetect

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWSLWarningMessage

func GetWSLWarningMessage() string

GetWSLWarningMessage returns the warning message for WSL Windows partition usage

func IsOnWindowsPartition

func IsOnWindowsPartition() bool

IsOnWindowsPartition returns true if the current working directory is on a Windows partition This is detected by checking if the path starts with /mnt/ (typical WSL mount point)

func IsOnWindowsPartitionPath

func IsOnWindowsPartitionPath(path string) bool

IsOnWindowsPartitionPath returns true if the provided path is on a Windows partition in WSL (typically paths mounted under /mnt/*)

func IsWSL

func IsWSL() bool

IsWSL returns true if the current environment is Windows Subsystem for Linux

func IsWSLWindowsPartition

func IsWSLWindowsPartition(path string) bool

IsWSLWindowsPartition checks if the user is running on a Windows partition inside WSL Returns true if both conditions are met

Types

This section is empty.

Jump to

Keyboard shortcuts

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