Skip to content

Commit

Permalink
feat: initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Nov 8, 2023
1 parent 2a8c721 commit 844ac63
Show file tree
Hide file tree
Showing 10 changed files with 654 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/execdl
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/execdl.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# execdl

`execdl` downloads an executable, caches it, and `exec`s it with arguments.

```shellsession
$ execdl --help
Usage of execdl:
-http-timeout duration
HTTP client timeout (default 5m0s)
-url value
[<OS>/<architecture>=]URL (at least one required to match)

execdl downloads, caches, and executes executables.

The runtime OS and architecture are matched against the given URL matchers.
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.

The first non-flag argument or -- terminates execdl arguments.
Remaining ones are passed to the downloaded one.

The EXECDL_VERBOSE environment variable controls output verbosity; false decreases, true increases.
```

## License

SPDX-License-Identifier: Apache-2.0
Loading

0 comments on commit 844ac63

Please sign in to comment.