You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: auto-detect piped stdin for upload and extend processUtils I/O
When no paths are provided and stdin is a pipe (not a terminal), upload
now reads from piped stdin instead of printing the pre-signed URL. This
enables `echo data | rli obj upload --name foo --content-type text`
without explicitly passing `-`. Zero-byte pipes are handled correctly.
Extend processUtils with Buffer support on stdout/stderr.write and
AsyncIterable on stdin, so upload and download go through the mockable
abstraction instead of process globals directly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/utils/commands.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -632,7 +632,7 @@ export function createProgram(): Command {
632
632
object
633
633
.command("download <id> [path]")
634
634
.description(
635
-
"Download object to local file (path defaults to ./<name> with inferred extension; use - for stdout)",
635
+
"Download an object. Omit path to save as ./<name> with inferred extension. Use - to write to stdout.",
636
636
)
637
637
.option("--extract","Extract downloaded archive after download")
638
638
.option(
@@ -652,7 +652,7 @@ export function createProgram(): Command {
652
652
object
653
653
.command("upload [paths...]")
654
654
.description(
655
-
"Upload file(s) or directory as an object. With no paths, creates the object and prints the upload URL. Use - to read from stdin.",
655
+
"Upload an object. Reads from piped stdin when no paths are given; prints a pre-signed upload URL if stdin is a terminal. Use - to explicitly read stdin. Multiple paths with --content-type tar|tgz creates an archive.",
0 commit comments