From 30031bc0ee46d28244f35505339d9d9789012561 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Fri, 18 Oct 2024 14:07:53 -0500 Subject: Initial commit Signed-off-by: Matt Strapp --- run_host.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 run_host.go (limited to 'run_host.go') 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 +} -- cgit v1.2.3