Skip to content

Commit

Permalink
docs: note supported fragment formats
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Nov 14, 2023
1 parent d022d87 commit 09fb2b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ The first matching one in the order given is chosen as the URL to download.
The matcher OS and architecture may be globs.
As a special case, a plain URL with no matcher part is treated as if it was given with the matcher */*.
URL fragments are treated as hex encoded digests for the download, and checked.
Digest types are identified by type=hexHash or type-hexHash formatted fragments,
falling back to determining based on the digest length,

The first non-flag argument or -- terminates wrun arguments.
Remaining ones are passed to the downloaded one.
Expand Down
2 changes: 2 additions & 0 deletions wrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ The first matching one in the order given is chosen as the URL to download.
The matcher OS and architecture may be globs.
As a special case, a plain URL with no matcher part is treated as if it was given with the matcher */*.
URL fragments are treated as hex encoded digests for the download, and checked.
Digest types are identified by type=hexHash or type-hexHash formatted fragments,
falling back to determining based on the digest length,
The first non-flag argument or -- terminates %s arguments.
Remaining ones are passed to the downloaded one.
Expand Down

0 comments on commit 09fb2b8

Please sign in to comment.