Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/storage/stdio.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (*StdioEngine) Get(_ context.Context, u *URI) (Reader, error) {
if u.Scheme != "stdio" || (u.Path != "stdin" && u.Path != "") {
return nil, fmt.Errorf("cannot read from %q", u)
}
return &notSupportedReaderAt{io.NopCloser(os.Stdin)}, nil
return os.Stdin, nil
}

func (*StdioEngine) Put(ctx context.Context, u *URI) (io.WriteCloser, error) {
Expand Down
9 changes: 7 additions & 2 deletions sio/anyio/ztests/csup.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
script: |
super -f csup -o f -
super -s f
echo // standard input
super -s -c 'from "stdio:stdin"' < f

inputs:
- name: stdin
data: &stdin |
data: |
{a:1}

outputs:
- name: stdout
data: *stdin
data: |
{a:1}
// standard input
{a:1}
9 changes: 7 additions & 2 deletions sio/anyio/ztests/parquet.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
script: |
super -f parquet -o f -
super -s f
echo // standard input
super -s -c 'from "stdio:stdin"' < f

inputs:
- name: stdin
data: &stdin |
data: |
{a:1}

outputs:
- name: stdout
data: *stdin
data: |
{a:1}
// standard input
{a:1}