wsl
Run block-scoped operations between Windows and WSL Linux through a remote VFS.
Functions
with_linux block :distro? :user? :command? :cd? :env?
Runs block in a WSL Linux distribution through a stdio VFS.
The active VFS target must be Windows. distro: and user: select the WSL
distribution and Linux user; when omitted, WSL uses its configured defaults.
command: is the Linux VFS launcher prefix.
Parameters
| Name | type | Description |
|---|---|---|
block |
func |
Block to run in Linux |
distro |
Str? |
WSL distribution |
user |
Str? |
Linux user |
command |
Array |
Linux VFS launcher prefix |
cd |
Path? |
Initial Linux working directory |
env |
Dict |
Initial Linux environment overrides |
Returns
The result of block.
with_windows block :command? :cd? :env?
Runs block on the Windows host through WSL interoperability and a stdio
VFS. The active VFS target must be Linux.
When command: is omitted, dolang-vfs.exe is preferred and
dolang.exe --vfs is used as a fallback.
Parameters
| Name | type | Description |
|---|---|---|
block |
func |
Block to run on Windows |
command |
Array |
Windows VFS launcher prefix |
cd |
Path? |
Initial Windows working directory |
env |
Dict |
Initial Windows environment overrides |
Returns
The result of block.