~rootmos/fetch

One script to fetch them and in /tmp bind them
47107ea2 — Gustav Behm 2 days ago
Merge branch 'tests'
9e6798aa — Gustav Behm 3 days ago
More tests
f03ffa02 — Gustav Behm 3 days ago
Simplify tests by assuming cwd == temporary directory

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

#Usage

usage: fetch [-h] [--log LOG] [--log-file FILE] [--root ROOT]
             [--manifest FILE]
             {add,download} ...

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

positional arguments:
  {add,download}

options:
  -h, --help       show this help message and exit
  --log LOG        set log level (default: WARN)
  --log-file FILE  redirect stdout and stderr to FILE (default: None)
  --root ROOT      act relative the directory ROOT (default: .)
  --manifest FILE  load manifest from DIR (default: ./.fetch.json)

#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