~rootmos/fetch

One script to fetch them and in /tmp bind them
3d37a27f — Gustav Behm 7 months ago
Add a command to steal this script
c2ba0c1c — Gustav Behm 7 months ago
Apply CC0 license
9f0cb76b — Gustav Behm 7 months ago
Fix --root and --manifest arguments

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~rootmos/fetch
read/write
git@git.sr.ht:~rootmos/fetch

You can also use your local clone with git send-email.

#File download helpers

builds.sr.ht status CC0 1.0 Universal

#Usage

usage: fetch [-h] [-v] [--log LOG] [--root ROOT]
             [--manifest-filename FILENAME] [--manifest PATH]
             {add,download,steal-this-script} ...

One script to fetch them all and in /tmp bind them

positional arguments:
  {add,download,steal-this-script}

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  --log LOG             set log level (default: WARN)
  --root ROOT           act relative the directory ROOT (default: .)
  --manifest-filename FILENAME
                        load manifest from FILENAME (relative to the ROOT)
                        (default: .fetch.json)
  --manifest PATH       load manifest from PATH (default: None)

#Add a file

usage: fetch add [-h] [--sha256 SHA256] URL TARGET

positional arguments:
  URL
  TARGET

options:
  -h, --help       show this help message and exit
  --sha256 SHA256

#Download files

usage: fetch download [-h] [TARGET ...]

positional arguments:
  TARGET

options:
  -h, --help  show this help message and exit