-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run commands natively in service when interactive=false
- Loading branch information
Showing
10 changed files
with
183 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//go:build windows | ||
|
||
package runner | ||
|
||
import ( | ||
"os" | ||
"os/exec" | ||
|
||
"github.com/pkg/errors" | ||
) | ||
|
||
func setSysProcAttrCtty(cmd *exec.Cmd) {} | ||
|
||
func setSysProcAttrPgid(cmd *exec.Cmd) {} | ||
|
||
func dup(fd int) (int, error) { | ||
return fd, nil | ||
} | ||
|
||
func disableEcho(fd uintptr) error { | ||
return errors.New("Error: Environment not supported! " + | ||
"Runme currently doesn't support PowerShell. " + | ||
"Please go to https://github.com/stateful/runme/issues/173 to follow progress on this " + | ||
"and join our Discord server at https://discord.gg/runme if you have further questions!") | ||
} | ||
|
||
func signalPgid(pid int, sig os.Signal) error { return errors.New("unsupported") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.