github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/core/processes/bgfg_windows.go (about)

     1  //go:build windows
     2  // +build windows
     3  
     4  package processes
     5  
     6  import (
     7  	"errors"
     8  
     9  	"github.com/lmorg/murex/lang"
    10  	"github.com/lmorg/murex/lang/types"
    11  )
    12  
    13  func mkbg(p *lang.Process) error {
    14  	return errors.New("Invalid parameters. `bg` only supports a code block on Windows because backgrounding a stopped process is not currently supported on Windows")
    15  }
    16  
    17  func cmdForeground(p *lang.Process) error {
    18  	p.Stdout.SetDataType(types.Null)
    19  
    20  	return errors.New("This function is currently not supported on Windows")
    21  }
    22  
    23  func unstop(p *lang.Process) {}