fs: cleanup CommandReader implementation

This commit is contained in:
Michael Eischer
2023-10-01 15:07:51 +02:00
parent 37a312e505
commit 7d879705ad
2 changed files with 29 additions and 28 deletions
+1 -1
View File
@@ -728,5 +728,5 @@ func prepareStdinCommand(ctx context.Context, args []string) (io.ReadCloser, err
if err := command.Start(); err != nil {
return nil, errors.Wrap(err, "command.Start")
}
return &fs.ReadCloserCommand{Cmd: command, Stdout: stdout}, nil
return fs.NewCommandReader(command, stdout), nil
}