This focuses on Windows first, but coudl be used for Mac and possibly linux in the future.
		
			
				
	
	
		
			13 lines
		
	
	
		
			180 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			180 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//go:build !windows
 | 
						|
 | 
						|
package lifecycle
 | 
						|
 | 
						|
import (
 | 
						|
	"context"
 | 
						|
	"os/exec"
 | 
						|
)
 | 
						|
 | 
						|
func getCmd(ctx context.Context, cmd string) *exec.Cmd {
 | 
						|
	return exec.CommandContext(ctx, cmd, "serve")
 | 
						|
}
 |