From 4cb80f1d1c0543e3bb260d060963a4f67eea1adf Mon Sep 17 00:00:00 2001 From: Nick Logan Date: Sun, 28 Apr 2024 10:56:54 -0500 Subject: [PATCH] Document arguments passed via STDIN --- README.md | 6 +++++- lib/Zef/CLI.rakumod | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3edd49bc..a1dcc935 100644 --- a/README.md +++ b/README.md @@ -90,8 +90,12 @@ if both passed all their tests. For example: if module A failed its tests, then zef -v install https://github.com/ugexe/zef/archive/main.tar.gz zef -v install https://github.com/ugexe/zef.git@v0.1.22 + # STDIN + echo "Net::HTTP" | zef install - + A request may contain any number and combination of these. Paths and URLs will be resolved first so they are available -to fulfill any dependencies of other requested identities. +to fulfill any dependencies of other requested identities. An identity of `-` will treat each line of STDIN as an +identity. **Options** diff --git a/lib/Zef/CLI.rakumod b/lib/Zef/CLI.rakumod index 45b36a27..f89ae77b 100644 --- a/lib/Zef/CLI.rakumod +++ b/lib/Zef/CLI.rakumod @@ -135,7 +135,8 @@ package Zef::CLI { *@wants ($, *@) ) - Fetch, extract, build, test, and install C<@wanted> distributions and their prerequisites. + Fetch, extract, build, test, and install C<@wanted> distributions and their prerequisites. If C<@wanted> contains a + value of C<-> then each line of STDIN will be added to C<@wanted>. If C<$fetch> is set to C then the fetch phase will be skipped.