linux: provide access to stdout
All checks were successful
test / test (push) Successful in 22s

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-11-04 22:55:46 +09:00
parent fc25ac2523
commit 69cc64ef56
3 changed files with 10 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package linux
import (
"io"
"io/fs"
"os/user"
"path"
@@ -31,6 +32,8 @@ type System interface {
Open(name string) (fs.File, error)
// Exit provides [os.Exit].
Exit(code int)
// Stdout provides [os.Stdout].
Stdout() io.Writer
// FshimPath returns an absolute path to the fshim binary.
FshimPath() string