From 9f227397a76b9d40f7ff14c58d82af378427c0fe Mon Sep 17 00:00:00 2001 From: Cosimo Matteini Date: Sun, 18 Aug 2024 19:13:08 +0200 Subject: [PATCH] docs: extract download options from interactive download section --- README.md | 59 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index d2a103a..9780504 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ make release - [Download assets with interactive mode](#interactive-download) - [Download assets with non-interactive mode](#non-interactive-download) +- [Download options](#download-options) - [Install assets](#install-assets) - [Private repositories & rate limit](#private-repositories--rate-limit) - [Shell completion](#shell-completion) @@ -69,38 +70,12 @@ make release ### Interactive download -Select and download an asset from a repository +Manually select and download an asset from a repository ```shell dra download devmatteini/dra-tests ``` -Select and download an asset to custom path - -```shell -dra download --output /tmp/dra-example devmatteini/dra-tests - -# or save to custom directory path -dra download --output ~/Downloads devmatteini/dra-tests -``` - -Select and download an asset from a specific release - -```shell -dra download --tag 0.1.1 devmatteini/dra-tests -``` - -Select and download source code archives - -```shell -dra download devmatteini/dra-tests -Release tag is 0.1.5 -? Pick the asset to download › - helloworld_0.1.5.tar.gz -❯ Source code (tar.gz) - Source code (zip) -``` - ### Non-Interactive download This mode is useful to be used in automated scripts. @@ -136,6 +111,36 @@ Copy the output and run: dra download --select "helloworld_{tag}.tar.gz" devmatteini/dra-tests ``` +### Download options + +All `dra-download` options works with both interactive and non-interactive modes. + +Select and download an asset to custom path + +```shell +dra download --output /tmp/dra-example devmatteini/dra-tests + +# or save to custom directory path +dra download --output ~/Downloads devmatteini/dra-tests +``` + +Select and download an asset from a specific release + +```shell +dra download --tag 0.1.1 devmatteini/dra-tests +``` + +Select and download source code archives + +```shell +dra download devmatteini/dra-tests +Release tag is 0.1.5 +? Pick the asset to download › + helloworld_0.1.5.tar.gz +❯ Source code (tar.gz) + Source code (zip) +``` + ### Install assets Download and install an asset (on both interactive and non-interactive modes)