From 4b91c392efacf46a058b178c8aec736d1162469e Mon Sep 17 00:00:00 2001 From: tanlang Date: Tue, 5 Jul 2022 15:17:16 +0800 Subject: [PATCH] fix: narrow os.file to FdReader in AppFmt --- cli/util.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/util.go b/cli/util.go index 9bfd0ba4..eb5d0e46 100644 --- a/cli/util.go +++ b/cli/util.go @@ -287,14 +287,14 @@ func channelStatusString(useColor bool, status datatransfer.Status) string { type AppFmt struct { app *cli.App - Stdin *os.File + Stdin gopass.FdReader } func NewAppFmt(a *cli.App) *AppFmt { - var stdin *os.File + var stdin gopass.FdReader istdin, ok := a.Metadata["stdin"] if ok { - stdin = istdin.(*os.File) + stdin = istdin.(gopass.FdReader) } else { stdin = os.Stdin }