From 69cc64ef56c4b46954514d7ef1b93b3861443255 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Mon, 4 Nov 2024 22:55:46 +0900 Subject: linux: provide access to stdout Signed-off-by: Ophestra Umiker --- internal/linux/interface.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/linux/interface.go') 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 -- cgit v1.3.1