~rootmos/fetch

One script to fetch them and in /tmp bind them
1b6d970a — Gustav Behm 24 days ago
Print items relative root when its specified
3d37a27f — Gustav Behm 11 months ago
Add a command to steal this script
c2ba0c1c — Gustav Behm 11 months ago
Apply CC0 license

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