aboutsummaryrefslogtreecommitdiffstats
path: root/run_host.go
blob: 4a74a7b6fb88143e0388097742a092a8770b1af3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}