Skip to content

Commit

Permalink
Document arguments passed via STDIN
Browse files Browse the repository at this point in the history
  • Loading branch information
ugexe committed Apr 28, 2024
1 parent 2ffe30c commit 4cb80f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

# 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**

Expand Down
3 changes: 2 additions & 1 deletion lib/Zef/CLI.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -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<False> then the fetch phase will be skipped.
Expand Down

0 comments on commit 4cb80f1

Please sign in to comment.