diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-11-04 22:55:46 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-11-04 22:55:46 +0900 |
| commit | 69cc64ef56c4b46954514d7ef1b93b3861443255 (patch) | |
| tree | e7a334465e270450b39191697d4561bb21076559 /internal/linux/interface.go | |
| parent | fc25ac2523c512c67d73db5bbbd47224dc0b2001 (diff) | |
linux: provide access to stdout
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/linux/interface.go')
| -rw-r--r-- | internal/linux/interface.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/linux/interface.go b/internal/linux/interface.go index cf984a32..36f61b1a 100644 --- a/internal/linux/interface.go +++ b/internal/linux/interface.go @@ -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 |
