diff options
Diffstat (limited to 'run_host.go')
-rw-r--r-- | run_host.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/run_host.go b/run_host.go new file mode 100644 index 0000000..4a74a7b --- /dev/null +++ b/run_host.go @@ -0,0 +1,14 @@ +//go:build windows && !nonhost + +package main + +import ( + "os/exec" +) + +// Run the native WSL command +func command(distribution Distribution, config Config) (*exec.Cmd, error) { + // Append the additional arguments to the command + args := append([]string{"-d", distribution.Name}, config.WslArgs...) + return exec.Command("wsl", args...), nil +} |